How do I write a Prometheus query that returns the value of a label?
My answer tries to elaborate on Carl’s answer. I assume that the GUI layout may have changed a little since 2016, so it took me while to find the “name” option. Assuming you have a metric as follows: # HELP db2_prometheus_adapter_info Information on the state of the DB2-Prometheus-Adapter # TYPE db2_prometheus_adapter_info gauge db2_prometheus_adapter_info{app_state=”UP”) 1.0 and … Read more