mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 19:37:27 +08:00
Add alert rule for high CPU usage change
This commit is contained in:
parent
f25c09350b
commit
40ad2e67a0
1 changed files with 4 additions and 0 deletions
|
|
@ -373,6 +373,10 @@ groups:
|
|||
query: 'rate(container_cpu_cfs_throttled_seconds_total[3m]) > 1'
|
||||
severity: warning
|
||||
for: 2m
|
||||
- name: Container high low change CPU usage
|
||||
description: This alert rule monitors the absolute change in CPU usage within a time window and triggers an alert when the change exceeds 25%.
|
||||
query: '(abs((sum by (instance, name) (rate(container_cpu_usage_seconds_total{name!=""}[1m])) * 100) - (sum by (instance, name) (rate(container_cpu_usage_seconds_total{name!=""}[1m] offset 1m)) * 100)) or abs((sum by (instance, name) (rate(container_cpu_usage_seconds_total{name!=""}[1m])) * 100) - (sum by (instance, name) (rate(container_cpu_usage_seconds_total{name!=""}[5m] offset 1m)) * 100))) > 25'
|
||||
severity: warning
|
||||
- name: Container Low CPU utilization
|
||||
description: Container CPU utilization is under 20% for 1 week. Consider reducing the allocated CPU.
|
||||
query: '(sum(rate(container_cpu_usage_seconds_total{name!=""}[3m])) BY (instance, name) * 100) < 20'
|
||||
|
|
|
|||
Loading…
Reference in a new issue