doc: more explicit "ContainerAbsent" and "ContainerKilled" rules

This commit is contained in:
Samuel Berthe 2021-10-04 00:10:05 +02:00
parent 251a929db0
commit 603aacd0e2
No known key found for this signature in database
GPG key ID: 64863511FFBD0E3C

View file

@ -291,6 +291,15 @@ groups:
description: A container has disappeared
query: 'time() - container_last_seen > 60'
severity: warning
comments: |
This rule can be very noisy in dynamic infra with legitimate container start/stop/deployment.
- name: Container absent
description: A container is absent for 5 min
query: 'absent(container_last_seen)'
severity: warning
for: 5m
comments: |
This rule can be very noisy in dynamic infra with legitimate container start/stop/deployment.
- name: Container CPU usage
description: Container CPU usage is above 80%
query: '(sum(rate(container_cpu_usage_seconds_total[3m])) BY (instance, name) * 100) > 80'