def prometheus_get_label_names(event: ExecutionBaseEvent, prometheus_params: PrometheusGetLabelNames):
    """
    Fetches a list of label names from prometheus instance.

    https://prometheus.io/docs/prometheus/latest/querying/api/#getting-label-names
    """
    try:
        prom = get_prometheus_connect(prometheus_params=prometheus_params)
        prom_label_names = prom.get_label_names(prometheus_params.dict())

    except Exception as e:
        logging.error("An error occurred while fetching all available Prometheus metrics", exc_info=True)
        raise e

    event.add_enrichment([JsonBlock(json.dumps({"labels": prom_label_names}))])

    Fetches a list of label names from prometheus instance.

    https://prometheus.io/docs/prometheus/latest/querying/api/#getting-label-names
    
playbooks/robusta_playbooks/prometheus_enrichments.py