def get_gce_auth_token():
    try:
        r = requests.get(
            METADATA_ENDPOINT + '/instance/service-accounts/default/token',
            headers={'Metadata-Flavor': 'Google'},
            timeout=2)

        r.raise_for_status()

        return r.json()['access_token']

    except:
        return None
Apply the criteria to filter out on the metrics required
dataset/ETHPy150Open jonparrott/noel/noel/noel/builder/gcp.py/get_gce_auth_token--crossover with--dataset/ETHPy150Open boundary/pulse-api-cli/boundary/metric_export.py/MetricExport.filter