def METHOD_NAME(dd_run_check, aggregator, gitlab_check, get_config):
    from datadog_checks.gitlab.gitlab_v2 import GitlabCheckV2
    config = get_config(True)
    instance = config['instances'][0]
    instance["gitaly_server_endpoint"] = GITLAB_GITALY_PROMETHEUS_ENDPOINT
    dd_run_check(gitlab_check(config))
    assert_check(aggregator, METRICS_TO_TEST_V2 + GITALY_METRICS_TO_TEST, True)
    aggregator.assert_service_check(
        'gitlab.gitaly.openmetrics.health',
        status=GitlabCheckV2.OK,
        tags=GITLAB_TAGS + CUSTOM_TAGS + ['endpoint:{}'.format(GITLAB_GITALY_PROMETHEUS_ENDPOINT)],
    )