mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 03:38:07 +03:00
added 'monitoring' path - ask devs why it's there
This commit is contained in:
61
monitoring/cast04/alertmanager.yml
Normal file
61
monitoring/cast04/alertmanager.yml
Normal file
@@ -0,0 +1,61 @@
|
||||
# Alertmanager config — cast04 (updated 2026-06-26)
|
||||
# Track A SPEC: ac-docs/specs/20260626_cluster_monitoring.md §7.4
|
||||
#
|
||||
# Outbound notifications are handled by alert-notifier.py (localhost:9099),
|
||||
# which shortens URLs via s.f0xx.org, generates QR codes, and sends
|
||||
# HTML email + Telegram with the QR image attached.
|
||||
|
||||
global:
|
||||
# No direct SMTP here — alert-notifier handles email delivery.
|
||||
# smtp_* kept as comment for reference:
|
||||
# smtp_smarthost: 'smtp.gmail.com:587'
|
||||
# smtp_auth_username: 'bestcastr@gmail.com'
|
||||
# smtp_auth_password: 'wnxv caln tcmt ldpn'
|
||||
|
||||
templates:
|
||||
- '/etc/alertmanager/templates/*.tmpl'
|
||||
|
||||
route:
|
||||
group_by: ['alertname', 'instance', 'severity']
|
||||
group_wait: 30s
|
||||
group_interval: 5m
|
||||
repeat_interval: 4h
|
||||
receiver: 'webhook-default'
|
||||
|
||||
routes:
|
||||
- match:
|
||||
severity: critical
|
||||
receiver: 'webhook-critical'
|
||||
group_wait: 10s
|
||||
repeat_interval: 1h
|
||||
|
||||
- match:
|
||||
severity: warning
|
||||
receiver: 'webhook-default'
|
||||
repeat_interval: 6h
|
||||
|
||||
- match:
|
||||
alertname: Watchdog
|
||||
receiver: 'null'
|
||||
|
||||
receivers:
|
||||
- name: 'null'
|
||||
|
||||
- name: 'webhook-default'
|
||||
webhook_configs:
|
||||
- url: 'http://127.0.0.1:9099/webhook'
|
||||
send_resolved: true
|
||||
max_alerts: 10
|
||||
|
||||
- name: 'webhook-critical'
|
||||
webhook_configs:
|
||||
- url: 'http://127.0.0.1:9099/webhook'
|
||||
send_resolved: true
|
||||
max_alerts: 10
|
||||
|
||||
inhibit_rules:
|
||||
- source_match:
|
||||
severity: 'critical'
|
||||
target_match:
|
||||
severity: 'warning'
|
||||
equal: ['instance', 'alertname']
|
||||
Reference in New Issue
Block a user