Grafana 5: metric lookup - get value of label

Hi,

I was using metric lookup in Grafana (4.3) to visualize values of labels. For example to get version of Prometheus itself.

prometheus_build_info{branch="HEAD",goversion="go1.10",instance="localhost:9090",job="prometheus",revision="bc6058c81272a8d938c05e75607371284236aadc",version="2.2.1"}

But in Grafana 5.0, there is no Metric lookup. How should I get the value of version label in this Grafana version (Prometheus does not support returning Strings afaik).

Thanks!

7c73t

Hi,

The metric lookup field was only a field where you could search for metrics and insert into the query field. See prometheus documentation of new query editor which supports auto completion of metric names and more.

For a working solution of displaying label value in singlestat panel, see Extract labels values from prometheus metrics.

Marcus

Cool, works, than you very much!