Grafana - CPU persentage exceeds 20 % for continuously 5 minutes - Stack Overflow

I need your assistance to modify the following query in Grafana (not prometheus alerting) to be trigger

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
Add a comment  | 

1 Answer 1

Reset to default 0
(100 - (avg by (instance,product,country,class,job,region) (rate(node_cpu_seconds_total{mode="idle"}[30:5m])) * 100)) > 20

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743780932a4505782.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信