import requests


def get_metric_names(url):
    """Get ALL Metric names from prometheus

    Args:
        url (str): Prometheus url

    Returns:
        list: List with all the metric names

    """
    response = requests.get(f'{url}/api/v1/label/__name__/values')
    data = response.json()['data']
    return data