mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-24 10:26:58 +08:00
Publish
This commit is contained in:
parent
f5f6b338a3
commit
c3258de6c7
1 changed files with 2 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ groups:
|
||||||
description: "A container is absent for 5 min\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
description: "A container is absent for 5 min\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
- alert: ContainerHighCpuUtilization
|
- alert: ContainerHighCpuUtilization
|
||||||
expr: '(sum(rate(container_cpu_usage_seconds_total{name!=""}[3m])) BY (instance, name) * 100) > 80'
|
expr: '(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'
|
||||||
for: 2m
|
for: 2m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
|
|
@ -59,7 +59,7 @@ groups:
|
||||||
description: "Container is being throttled\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
description: "Container is being throttled\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
- alert: ContainerLowCpuUtilization
|
- alert: ContainerLowCpuUtilization
|
||||||
expr: '(sum(rate(container_cpu_usage_seconds_total{name!=""}[3m])) BY (instance, name) * 100) < 20'
|
expr: '(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'
|
||||||
for: 7d
|
for: 7d
|
||||||
labels:
|
labels:
|
||||||
severity: info
|
severity: info
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue