最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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
发布评论

评论列表(0)

  1. 暂无评论