fn retrieve_metric_name_from_promql(query: &str) -> Option<String>
Expand description
Try to parse and extract the name of referenced metric from the promql query.
Returns the metric name if exactly one unique metric is referenced, otherwise None. Multiple references to the same metric are allowed.