servers::http::prometheus

Function 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.