How to set alias for Grafana Query with Prometheus Input

拟墨画扇 提交于 2019-12-11 04:55:34

问题


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.

Could anybody provide an example to me?

Thanks in advance.


回答1:


See this link http://docs.grafana.org/features/datasources/prometheus/#templated-queries

To use Template Query is help for you.

First, you should define label_values with metric or not. and, extract what you want in your panel.

this is my dashboard. I have imported Node Exporter Server metrics, and modify 'instance' to 'alias' in Template Query. I hope this will help you.



来源:https://stackoverflow.com/questions/42020008/how-to-set-alias-for-grafana-query-with-prometheus-input

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!