feat(observability): add Prometheus/Grafana/Loki/Alertmanager/Alloy stack and remove legacy Monitoring UI

This commit is contained in:
Developer
2026-06-16 11:08:32 +00:00
parent 615e02e970
commit e2ad731b5f
80 changed files with 5020 additions and 3665 deletions
+44
View File
@@ -0,0 +1,44 @@
global:
smtp_smarthost: '${SMTP_HOST:-smtp.example.com}:${SMTP_PORT:-587}'
smtp_from: '${SMTP_FROM_ADDRESS:-alerts@example.com}'
smtp_auth_username: '${SMTP_USERNAME:-}'
smtp_auth_password: '${SMTP_PASSWORD}'
route:
receiver: 'default'
group_by: ['alertname', 'severity', 'category']
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
routes:
- match:
severity: critical
receiver: 'critical'
continue: true
receivers:
- name: 'default'
email_configs:
- to: '${ALERT_EMAIL_TO}'
send_resolved: true
headers:
Subject: '[Manage] {{ .GroupLabels.alertname }}'
- name: 'critical'
email_configs:
- to: '${ALERT_EMAIL_TO}'
send_resolved: true
headers:
Subject: '[Manage CRITICAL] {{ .GroupLabels.alertname }}'
- name: 'webhook'
webhook_configs:
- url: '${ALERTMANAGER_WEBHOOK_URL:-http://backend:8000/api/monitoring/alertmanager-webhook}'
send_resolved: true
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
equal: ['alertname', 'instance']