Add cadvisor support with monitoring stack: alertmanager, loki, node-red, promtail
This commit is contained in:
21
roles/alertmanager/templates/alertmanager.yml.j2
Normal file
21
roles/alertmanager/templates/alertmanager.yml.j2
Normal file
@ -0,0 +1,21 @@
|
||||
global:
|
||||
smtp_smarthost: 'localhost:25'
|
||||
smtp_from: 'alertmanager@example.com'
|
||||
|
||||
route:
|
||||
group_by: ['alertname']
|
||||
group_wait: 30s
|
||||
group_interval: 5m
|
||||
repeat_interval: 12h
|
||||
receiver: 'email-notifications'
|
||||
|
||||
receivers:
|
||||
- name: 'email-notifications'
|
||||
email_configs:
|
||||
- to: 'alerts@example.com'
|
||||
send_resolved: true
|
||||
|
||||
- name: 'webhook-notifications'
|
||||
webhook_configs:
|
||||
- url: 'http://node-red:1880/alerts'
|
||||
send_resolved: true
|
||||
Reference in New Issue
Block a user