grafana: get alertmanager to be more chill
Some checks are pending
/ Ansible Lint (push) Waiting to run
Some checks are pending
/ Ansible Lint (push) Waiting to run
a bit of help to deal with alert fatigue
This commit is contained in:
parent
8f7990acc0
commit
11779ab21d
2 changed files with 8 additions and 19 deletions
|
|
@ -7,7 +7,7 @@ route:
|
|||
group_by: [ "alertname", "site", "type", "hypervisor" ]
|
||||
group_wait: 30s
|
||||
group_interval: 5m
|
||||
repeat_interval: 6h
|
||||
repeat_interval: 26h
|
||||
routes:
|
||||
- receiver: "null"
|
||||
matchers:
|
||||
|
|
@ -16,49 +16,38 @@ route:
|
|||
matchers:
|
||||
- org = "ccchh"
|
||||
- severity = "critical",
|
||||
repeat_interval: 18h
|
||||
repeat_interval: 26h
|
||||
continue: true
|
||||
- receiver: ntfy-ccchh
|
||||
matchers:
|
||||
- org = "ccchh"
|
||||
- severity =~ "info|warning",
|
||||
repeat_interval: 36h
|
||||
repeat_interval: 52h
|
||||
continue: true
|
||||
- receiver: ntfy-fux-critical
|
||||
matchers:
|
||||
- org = "fux"
|
||||
- severity = "critical",
|
||||
repeat_interval: 18h
|
||||
repeat_interval: 26h
|
||||
continue: true
|
||||
- receiver: email-fux-critical
|
||||
matchers:
|
||||
- org = "fux"
|
||||
- severity = "critical",
|
||||
repeat_interval: 36h
|
||||
repeat_interval: 52h
|
||||
continue: true
|
||||
- receiver: ntfy-fux
|
||||
matchers:
|
||||
- org = "fux"
|
||||
- severity =~ "info|warning",
|
||||
repeat_interval: 36h
|
||||
repeat_interval: 52h
|
||||
continue: true
|
||||
- receiver: ccchh-infrastructure-alerts
|
||||
matchers:
|
||||
- org = "ccchh"
|
||||
- severity =~ "info|warning|critical"
|
||||
|
||||
templates:
|
||||
- "/etc/alertmanager/templates/*.tmpl"
|
||||
|
||||
receivers:
|
||||
- name: "null"
|
||||
- name: "ccchh-infrastructure-alerts"
|
||||
telegram_configs:
|
||||
- send_resolved: true
|
||||
bot_token: {{ secret__alertmanager_telegram_bot_token }}
|
||||
chat_id: -1002434372415
|
||||
parse_mode: HTML
|
||||
message: {{ "'{{ template \"alert-message.telegram.ccchh\" . }}'" }}
|
||||
|
||||
- name: "ntfy-ccchh-critical"
|
||||
webhook_configs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue