mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-24 02:17:00 +08:00
Filter parent groups from Docker container alerts (#267)
This commit is contained in:
parent
2ca7f5bebe
commit
a12f5263c2
1 changed files with 4 additions and 4 deletions
|
|
@ -312,7 +312,7 @@ groups:
|
||||||
This rule can be very noisy in dynamic infra with legitimate container start/stop/deployment.
|
This rule can be very noisy in dynamic infra with legitimate container start/stop/deployment.
|
||||||
- name: Container CPU usage
|
- name: Container CPU usage
|
||||||
description: Container CPU usage is above 80%
|
description: Container CPU usage is above 80%
|
||||||
query: '(sum(rate(container_cpu_usage_seconds_total[3m])) BY (instance, name) * 100) > 80'
|
query: '(sum(rate(container_cpu_usage_seconds_total{name!=""}[3m])) BY (instance, name) * 100) > 80'
|
||||||
severity: warning
|
severity: warning
|
||||||
comments: |
|
comments: |
|
||||||
cAdvisor can sometimes consume a lot of CPU, so this alert will fire constantly.
|
cAdvisor can sometimes consume a lot of CPU, so this alert will fire constantly.
|
||||||
|
|
@ -320,18 +320,18 @@ groups:
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: Container Memory usage
|
- name: Container Memory usage
|
||||||
description: Container Memory usage is above 80%
|
description: Container Memory usage is above 80%
|
||||||
query: '(sum(container_memory_working_set_bytes) BY (instance, name) / sum(container_spec_memory_limit_bytes > 0) BY (instance, name) * 100) > 80'
|
query: '(sum(container_memory_working_set_bytes{name!=""}) BY (instance, name) / sum(container_spec_memory_limit_bytes > 0) BY (instance, name) * 100) > 80'
|
||||||
severity: warning
|
severity: warning
|
||||||
comments: See https://medium.com/faun/how-much-is-too-much-the-linux-oomkiller-and-used-memory-d32186f29c9d
|
comments: See https://medium.com/faun/how-much-is-too-much-the-linux-oomkiller-and-used-memory-d32186f29c9d
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: Container Volume usage
|
- name: Container Volume usage
|
||||||
description: Container Volume usage is above 80%
|
description: Container Volume usage is above 80%
|
||||||
query: '(1 - (sum(container_fs_inodes_free) BY (instance) / sum(container_fs_inodes_total) BY (instance))) * 100 > 80'
|
query: '(1 - (sum(container_fs_inodes_free{name!=""}) BY (instance) / sum(container_fs_inodes_total) BY (instance))) * 100 > 80'
|
||||||
severity: warning
|
severity: warning
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: Container Volume IO usage
|
- name: Container Volume IO usage
|
||||||
description: Container Volume IO usage is above 80%
|
description: Container Volume IO usage is above 80%
|
||||||
query: '(sum(container_fs_io_current) BY (instance, name) * 100) > 80'
|
query: '(sum(container_fs_io_current{name!=""}) BY (instance, name) * 100) > 80'
|
||||||
severity: warning
|
severity: warning
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: Container high throttle rate
|
- name: Container high throttle rate
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue