Monitoring stack (Prometheus, AlertManager, Grafana, Loki, Uptime Kuma) moved from main to tools server. Prometheus now scrapes main exporters over network (ip_main:9100/8080). Promtail pushes logs to ip_tools:3100. Traefik routes for dash/status.walava.io updated to ip_tools. discord-bot PROMETHEUS_URL updated to http://ip_tools:9090. Outline S3 fix: remove AWS_S3_ACL=private (Timeweb doesn't support per-object ACLs — caused upload failures). Add CORS configuration task for browser-side presigned uploads. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 lines
1.3 KiB
Django/Jinja
38 lines
1.3 KiB
Django/Jinja
# Generated by Ansible — do not edit manually
|
|
global:
|
|
resolve_timeout: 5m
|
|
|
|
route:
|
|
group_by: [alertname, severity]
|
|
group_wait: 30s
|
|
group_interval: 5m
|
|
repeat_interval: 4h
|
|
receiver: all
|
|
|
|
receivers:
|
|
- name: all
|
|
telegram_configs:
|
|
- bot_token: "{{ alertmanager_telegram_token }}"
|
|
chat_id: {{ alertmanager_telegram_chat_id }}
|
|
message: |
|
|
{{ '{{' }} range .Alerts {{ '}}' }}
|
|
{{ '{{' }} if eq .Status "firing" {{ '}}' }}🔴{{ '{{' }} else {{ '}}' }}🟢{{ '{{' }} end {{ '}}' }} *{{ '{{' }} .Labels.alertname {{ '}}' }}*
|
|
{{ '{{' }} .Annotations.summary {{ '}}' }}
|
|
{{ '{{' }} .Annotations.description {{ '}}' }}
|
|
{{ '{{' }} end {{ '}}' }}
|
|
parse_mode: Markdown
|
|
discord_configs:
|
|
- webhook_url: "{{ discord_webhook_alerts }}"
|
|
title: >-
|
|
{{ '{{' }} if eq (index .Alerts 0).Status "firing" {{ '}}' }}🔴 Alert{{ '{{' }} else {{ '}}' }}🟢 Resolved{{ '{{' }} end {{ '}}' }}
|
|
message: |
|
|
{{ '{{' }} range .Alerts {{ '}}' }}
|
|
**{{ '{{' }} .Labels.alertname {{ '}}' }}**
|
|
{{ '{{' }} .Annotations.summary {{ '}}' }}
|
|
{{ '{{' }} .Annotations.description {{ '}}' }}
|
|
{{ '{{' }} end {{ '}}' }}
|
|
|
|
inhibit_rules:
|
|
- source_matchers: [severity="critical"]
|
|
target_matchers: [severity="warning"]
|
|
equal: [alertname]
|