Vonage / Grafana_Status_panel

A panel plugin for Grafana to monitor multiple parameters at once
Other
178 stars 108 forks source link

How to set alias for Grafana Query with Prometheus Input #89

Open laghao opened 6 years ago

laghao commented 6 years ago

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.

vlehm commented 6 years ago

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

madeinoz67 commented 6 years ago

After struggling with this for the last couple of days I had just discovered the same thing afternoon doh!

mikkop71 commented 6 years ago

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.

Grejeru commented 5 years ago

@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?