This commit is contained in:
parent
15e200d96d
commit
3a9673b113
8 changed files with 236 additions and 27 deletions
|
@ -10,24 +10,21 @@ route:
|
|||
repeat_interval: 3h
|
||||
routes:
|
||||
- matchers:
|
||||
- org="ccchh"
|
||||
receiver: 'ccchh-infrastructure-alerts'
|
||||
|
||||
|
||||
{# Disable these for now, but might be interesting in the future.
|
||||
# Inhibition rules allow to mute a set of alerts given that another alert is
|
||||
# firing.
|
||||
# We use this to mute any warning-level notifications if the same alert is
|
||||
# already critical.
|
||||
inhibit_rules:
|
||||
- source_matchers: [severity="critical"]
|
||||
target_matchers: [severity="warning"]
|
||||
# Apply inhibition if the alertname is the same.
|
||||
# CAUTION:
|
||||
# If all label names listed in `equal` are missing
|
||||
# from both the source and target alerts,
|
||||
# the inhibition rule will apply!
|
||||
equal: [alertname, cluster, service] #}
|
||||
- org = "ccchh"
|
||||
- severity = "critical",
|
||||
receiver: ntfy-ccchh-critical
|
||||
- matchers:
|
||||
- org = "fux"
|
||||
- severity = "critical",
|
||||
receiver: ntfy-fux-critical
|
||||
- matchers:
|
||||
- org = "ccchh"
|
||||
- severity =~ "info|warning",
|
||||
receiver: ntfy-ccchh
|
||||
- matchers:
|
||||
- org = "fux"
|
||||
- severity =~ "info|warning",
|
||||
receiver: ntfy-fux
|
||||
|
||||
templates:
|
||||
- "/etc/alertmanager/templates/*.tmpl"
|
||||
|
@ -40,3 +37,19 @@ receivers:
|
|||
chat_id: -1002434372415
|
||||
parse_mode: HTML
|
||||
message: {{ "'{{ template \"alert-message.telegram.ccchh\" . }}'" }}
|
||||
|
||||
- name: "ntfy-ccchh-critical"
|
||||
webhook_configs:
|
||||
- url: "http://ntfy-alertmanager-ccchh-critical:8000"
|
||||
|
||||
- name: "ntfy-fux-critical"
|
||||
webhook_configs:
|
||||
- url: "http://ntfy-alertmanager-fux-critical:8001"
|
||||
|
||||
- name: "ntfy-ccchh"
|
||||
webhook_configs:
|
||||
- url: "http://ntfy-alertmanager-ccchh:8010"
|
||||
|
||||
- name: "ntfy-fux"
|
||||
webhook_configs:
|
||||
- url: "http://ntfy-alertmanager-fux:8011"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue