def METHOD_NAME(aggregator, instance_invalid_endpoint, dd_run_check):
    check = ArangodbCheck('arangodb', {}, [instance_invalid_endpoint])
    with pytest.raises(Exception):
        dd_run_check(check)
    aggregator.assert_service_check('arangodb.openmetrics.health', ArangodbCheck.CRITICAL, count=1)