def METHOD_NAME(aggregator):
    check = VespaCheck("vespa", {}, {})
    with open(os.path.join(HERE, 'metrics_all.json'), 'r') as f:
        check._get_metrics_json = MagicMock(return_value=json.load(f))
    check.check({'consumer': 'default', 'tags': ['tag1:val1']})
    aggregator.assert_service_check(check.PROCESS_SERVICE_CHECK, VespaCheck.OK, count=7)
    aggregator.assert_service_check(check.PROCESS_SERVICE_CHECK, VespaCheck.WARNING, count=0)
    aggregator.assert_service_check(check.METRICS_SERVICE_CHECK, VespaCheck.OK, count=1)
    aggregator.assert_metric(
        "vespa.http.status.2xx.rate",
        value=10,
        tags=[
            'metrictype:standard',
            'instance:container',
            'scheme:http',
            'httpMethod:GET',
            'clustername:default',
            'vespaVersion:7.0.0',
            'vespa-service:vespa.container',
            'tag1:val1',
        ],
    )
    aggregator.assert_metric("vespa.http.status.2xx.rate", count=5)
    assert_number_of_metrics_and_services(check)