mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-22 01:17:19 +08:00
fix: high/low cpu alert
This commit is contained in:
parent
937cd35df7
commit
f5f6b338a3
1 changed files with 2 additions and 2 deletions
|
|
@ -385,7 +385,7 @@ groups:
|
|||
This rule can be very noisy in dynamic infra with legitimate container start/stop/deployment.
|
||||
- name: Container High CPU utilization
|
||||
description: Container CPU utilization is above 80%
|
||||
query: '(sum(rate(container_cpu_usage_seconds_total{name!=""}[3m])) BY (instance, name) * 100) > 80'
|
||||
query: '(sum(rate(container_cpu_usage_seconds_total{container!=""}[5m])) by (pod, container) / sum(container_spec_cpu_quota{container!=""}/container_spec_cpu_period{container!=""}) by (pod, container) * 100) > 80'
|
||||
severity: warning
|
||||
for: 2m
|
||||
- name: Container High Memory usage
|
||||
|
|
@ -406,7 +406,7 @@ groups:
|
|||
for: 2m
|
||||
- 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'
|
||||
query: '(sum(rate(container_cpu_usage_seconds_total{container!=""}[5m])) by (pod, container) / sum(container_spec_cpu_quota{container!=""}/container_spec_cpu_period{container!=""}) by (pod, container) * 100) < 20'
|
||||
severity: info
|
||||
for: 7d
|
||||
- name: Container Low Memory usage
|
||||
|
|
|
|||
Loading…
Reference in a new issue