Function servers::http::prometheus::retrieve_metric_name_from_promql

source ยท
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 a single metric is referenced, otherwise None.