mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-24 18:36:59 +08:00
Update rules.yml
This commit is contained in:
parent
e2d3dadbc5
commit
90706282ad
1 changed files with 2 additions and 2 deletions
|
|
@ -401,9 +401,9 @@ groups:
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: Container high throttle rate
|
- name: Container high throttle rate
|
||||||
description: Container is being throttled
|
description: Container is being throttled
|
||||||
query: "rate(container_cpu_cfs_throttled_seconds_total[3m]) > 1"
|
query: 'sum(increase(container_cpu_cfs_throttled_periods_total{container!=""}[5m])) by (container, pod, namespace) / sum(increase(container_cpu_cfs_periods_total[5m])) by (container, pod, namespace) > ( 75 / 100 )'
|
||||||
severity: warning
|
severity: warning
|
||||||
for: 2m
|
for: 5m
|
||||||
- name: Container Low CPU utilization
|
- name: Container Low CPU utilization
|
||||||
description: Container CPU utilization is under 20% for 1 week. Consider reducing the allocated CPU.
|
description: Container CPU utilization is under 20% for 1 week. Consider reducing the allocated CPU.
|
||||||
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'
|
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'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue