def METHOD_NAME(aggregator, is_proxy):
    # type: (AggregatorStub, bool) -> None
    for metric, typ, value, tags in JOBS_METRICS:
        if 'job_type:query' in tags and is_proxy and IS_RETHINKDB_2_3:
            # For some reason, queries issued to retrieve metrics via a proxy server are not included
            # in system jobs under RethinkDB 2.3.
            count = 0
        else:
            count = 1
        aggregator.assert_metric(metric, metric_type=typ, value=value, count=count, tags=TAGS + tags)