def METHOD_NAME(integration_check, pg_instance):
    """
    If no relation metrics are being collected, autodiscovery should not run.
    """
    pg_instance["database_autodiscovery"] = DISCOVERY_CONFIG
    pg_instance['relations'] = []
    del pg_instance['dbname']
    check = integration_check(pg_instance)
    run_one_check(check, pg_instance)
    assert check.autodiscovery is None