Relative Content

Tag Archive for prometheusgrafana

Map Prometheus Datasource variable value and use it in a metric

I’m trying to run a metric to create a panel in a Grafana Dashboard based on the value of a datasource type variable. I created an “environment” variable that has the specific set of Prometheus datasources I want and within each panel/datasource, I need an specific value to be set in some metric query. For example:

Prometheus conditional metrics with variables in grafana

Let’s say I have a prometheus and a grafana.
The previous stack was a influx database.
A metric is named rabbitmq_queue_messages
With 2 environments, prod and preprod.
the queue is available in a metric label named “queue”

Duplicate Rows in Grafana Table

I am using Grafana version grafana-10.3.3-1.x86_64 with Prometheus version 2.50.1 to monitor the OS metrics using this dashboard https://grafana.com/grafana/dashboards/11074