Skip to content

Instantly share code, notes, and snippets.

@ThabetAmer
Last active February 5, 2020 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThabetAmer/e5d82a42c3eb22eecd67784d15c0e6c4 to your computer and use it in GitHub Desktop.
Save ThabetAmer/e5d82a42c3eb22eecd67784d15c0e6c4 to your computer and use it in GitHub Desktop.
Prometheus rule for a container status
- 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