Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global:
- # The smarthost and SMTP sender used for mail notifications.
- smtp_smarthost: 'localhost:25'
- smtp_from: 'alertmanager@example.org'
- smtp_auth_username: 'alertmanager'
- smtp_auth_password: 'password'
- receivers:
- - name: 'team-X-mails'
- email_configs:
- - to: 'team-X+alerts@example.org'
- # Only one default receiver
- route:
- receiver: team-X-mails
- # Example group with one alert
- groups:
- - name: example-alert
- rules:
- # Alert about restarts
- - alert: RestartAlerts
- expr: count(kube_pod_container_status_restarts_total) by (pod-name) > 5
- for: 10m
- annotations:
- summary: "More than 5 restarts in pod {{ $labels.pod-name }}"
- description: "{{ $labels.container-name }} restarted (current value: {{ $value }}s) times in pod {{ $labels.pod-namespace }}/{{ $labels.pod-name }}"
Add Comment
Please, Sign In to add comment