add alerting

This commit is contained in:
Your Name
2025-03-17 16:06:35 +00:00
parent d0ca70c546
commit 581f35cad3
6 changed files with 146 additions and 9 deletions
+22
View File
@@ -0,0 +1,22 @@
global:
resolve_timeout: 5m
route:
group_by: ['alertname', 'job']
group_wait: 30s
group_interval: 5m
repeat_interval: 3h
receiver: 'teams'
receivers:
- name: 'teams'
webhook_configs:
- url: 'http://webhook-adapter:8080/alert'
send_resolved: true
inhibit_rules:
- source_matchers:
- severity = 'critical'
target_matchers:
- severity = 'warning'
equal: ['alertname']