def METHOD_NAME(aggregator, check_deprecated):
    def assert_metric(name, **kwargs):
        # Wrapper to keep assertions < 120 chars
        aggregator.assert_metric(NAMESPACE + name, **kwargs)
    assert_metric('.goroutines')
    assert_metric('.threads')
    assert_metric('.open_fds')
    assert_metric('.client.http.requests')
    assert_metric('.max_fds')
    assert_metric('.nodes.evictions', metric_type=aggregator.MONOTONIC_COUNT, value=1, tags=["zone:test"])
    assert_metric('.nodes.evictions', metric_type=aggregator.MONOTONIC_COUNT, value=3, tags=["zone:test-total"])
    assert_metric('.nodes.count', value=5, tags=["zone:test"])
    assert_metric('.nodes.unhealthy', value=1, tags=["zone:test"])
    assert_metric('.rate_limiter.use', value=1, tags=["limiter:job_controller"])
    assert_metric('.rate_limiter.use', value=0, tags=["limiter:daemon_controller"])
    assert_metric('.queue.adds', metric_type=aggregator.MONOTONIC_COUNT, value=238.0, tags=["queue:replicaset"])
    assert_metric('.queue.depth', metric_type=aggregator.GAUGE, value=29, tags=["queue:service"])
    assert_metric('.queue.retries', metric_type=aggregator.MONOTONIC_COUNT, value=1283, tags=["queue:deployment"])
    if check_deprecated:
        assert_metric('.queue.work_duration.sum', value=2124279, tags=["queue:replicaset"])
        assert_metric('.queue.work_duration.count', value=238, tags=["queue:replicaset"])
        assert_metric('.queue.work_duration.quantile', value=144, tags=["queue:replicaset", "quantile:0.5"])
        assert_metric('.queue.latency.sum', value=1953629, tags=["queue:deployment"])
        assert_metric('.queue.latency.count', value=1454, tags=["queue:deployment"])
        assert_metric('.queue.latency.quantile', value=15195, tags=["queue:deployment", "quantile:0.9"])
    # Extra name from the instance
    assert_metric('.rate_limiter.use', value=0, tags=["limiter:extra_controller"])
    assert_metric('.queue.adds', metric_type=aggregator.MONOTONIC_COUNT, value=99.0, tags=["queue:daemonset"])
    assert_metric('.queue.depth', metric_type=aggregator.GAUGE, value=0, tags=["queue:daemonset"])
    assert_metric('.queue.retries', metric_type=aggregator.MONOTONIC_COUNT, value=4, tags=["queue:daemonset"])
    # Metrics from 1.14
    assert_metric('.queue.work_longest_duration', value=2, tags=["queue:daemonset"])
    assert_metric('.queue.work_unfinished_duration', value=1, tags=["queue:daemonset"])
    assert_metric('.queue.process_duration.count', value=51.0, tags=["queue:daemonset", "upper_bound:0.001"])
    assert_metric('.queue.process_duration.sum', value=0.7717836519999999, tags=["queue:daemonset"])
    assert_metric('.queue.queue_duration.count', value=99.0, tags=["queue:daemonset", "upper_bound:none"])
    assert_metric('.queue.queue_duration.sum', value=0.3633380879999999, tags=["queue:daemonset"])
    # Metrics from 1.26
    assert_metric('.job_controller.terminated_pods_tracking_finalizer', value=6, tags=["event:add"])
    assert_metric('.job_controller.terminated_pods_tracking_finalizer', value=6, tags=["event:delete"])
    # Leader election mixin
    expected_le_tags = ["record_kind:endpoints", "record_name:kube-controller-manager", "record_namespace:kube-system"]
    assert_metric('.leader_election.transitions', value=3, tags=expected_le_tags)
    assert_metric('.leader_election.lease_duration', value=15, tags=expected_le_tags)
    aggregator.assert_service_check(NAMESPACE + ".leader_election.status", tags=expected_le_tags)
    aggregator.assert_all_metrics_covered()