admin管理员组文章数量:1344979
I need your assistance to modify the following query in Grafana (not prometheus alerting) to be triggered when the amount of cpu load exceeds 20% for continuously 5 minutes.
(100 - (avg by (instance,product,country,class,job,region) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100)) > 20
I need your assistance to modify the following query in Grafana (not prometheus alerting) to be triggered when the amount of cpu load exceeds 20% for continuously 5 minutes.
(100 - (avg by (instance,product,country,class,job,region) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100)) > 20
Share
Improve this question
edited 11 hours ago
eglease
2,76411 gold badges20 silver badges34 bronze badges
asked yesterday
MegazordMegazord
659 bronze badges
2
- 2 You say you "need assistance", but haven't been clear what part you're having trouble with. Show us what you tried, what you expected to happen, and what actually happened, as a minimal reproducible example. – Toby Speight Commented yesterday
- We have a panel in Grafana and executing the query (100 - (avg by (instance,product,country,class,job,region) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100)) > bool 20 return values 0 OK 1 Issue I want to change the above and to get a value for OK when the CPU load exceeds the 20% for continuously 5minutes. for instance if I am scrapping the data each 1 minute for the duration of 5 minutes will be 5 scrapes and if the value for each scrape is above 20 then the panel to be change to Issue. – Megazord Commented 8 hours ago
1 Answer
Reset to default 0(100 - (avg by (instance,product,country,class,job,region) (rate(node_cpu_seconds_total{mode="idle"}[30:5m])) * 100)) > 20
本文标签: GrafanaCPU persentage exceeds 20for continuously 5 minutesStack Overflow
版权声明:本文标题:Grafana - CPU persentage exceeds 20 % for continuously 5 minutes - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743780931a2537811.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论