Last active
February 5, 2020 15:28
-
-
Save ThabetAmer/e5d82a42c3eb22eecd67784d15c0e6c4 to your computer and use it in GitHub Desktop.
Prometheus rule for a container status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- alert: container_down | |
expr: absent(container_last_seen{job="cadvisor",name="rabbitmq"}) | |
for: 30s | |
labels: | |
severity: critical | |
annotations: | |
summary: "Container down" | |
description: "{{ $labels.instance }} {{ $labels.name }} container is down for more than 30 seconds." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment