Grafana_Status_panel
Grafana_Status_panel copied to clipboard
How to set alias for Grafana Query with Prometheus Input
I am currently facing an issue with Grafana/Prometheus. I've got a panel and I am trying to add different queries to it. To be able to configure thresholds I should give every query a unique alias but I really don't know how to do that.
This is how I did include prometheus queries: On the metrics tab, for each query enter a name for that query in field "Legend format" (this will later be displayed). Now switch to options tab, every query will have its own section there, enter the same name here in the "Alias" field (has to be unique though).
After struggling with this for the last couple of days I had just discovered the same thing afternoon doh!
I have some difficulties to understand inner working of this plugin. If I have created repeating panel based on for example instance query in templating section eg. label_values(node_load1, instance). How do I match that repeating instance name with actual query which returns monitored valued. Do I need to make query in Metric section like node_load1{instance="$variable"}. This is approach seems to be not working because it is repeating metric from the first panel to all other repeating panels.
It seems to me that I am not now understanding something crucial.
@mikkop71 a year later I have same problem, did You manage to solve it and have each panel with metrics for the instance or still problem exists? Did You moved to other plugin to get that done?