Guest User

Untitled

a guest
Mar 26th, 2018
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. global:
  2. # The smarthost and SMTP sender used for mail notifications.
  3. smtp_smarthost: 'localhost:25'
  4. smtp_from: 'alertmanager@example.org'
  5. smtp_auth_username: 'alertmanager'
  6. smtp_auth_password: 'password'
  7.  
  8. receivers:
  9. - name: 'team-X-mails'
  10. email_configs:
  11. - to: 'team-X+alerts@example.org'
  12.  
  13. # Only one default receiver
  14. route:
  15. receiver: team-X-mails
  16.  
  17. # Example group with one alert
  18. groups:
  19. - name: example-alert
  20. rules:
  21. # Alert about restarts
  22. - alert: RestartAlerts
  23. expr: count(kube_pod_container_status_restarts_total) by (pod-name) > 5
  24. for: 10m
  25. annotations:
  26. summary: "More than 5 restarts in pod {{ $labels.pod-name }}"
  27. 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