ntfy alerts
Some checks failed
/ Ansible Lint (push) Failing after 1m55s

This commit is contained in:
chris 2025-06-02 22:36:05 +02:00
commit 3a9673b113
Signed by: c6ristian
SSH key fingerprint: SHA256:B3m+yzpaxGXSEcDBpPHfvza/DNC0wuX+CKMeGq8wgak
8 changed files with 236 additions and 27 deletions

View file

@ -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"