Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(devops): read the Slack webhook URL from a file in Alertmanager

Yudhi Armyndharisf7df50df877e
diff --git a/docs/10-devops-infrastructure.md b/docs/10-devops-infrastructure.md
index b97556c6f..8806db7df 100644
--- a/docs/10-devops-infrastructure.md
+++ b/docs/10-devops-infrastructure.md
@@ -666,6 +666,8 @@ services:
image: prom/alertmanager:v0.26.0
volumes:
- ./monitoring/alertmanager.yml:/etc/alertmanager/alertmanager.yml
+ # Holds the Slack webhook URL; see the Alertmanager config below
+ - ./monitoring/slack_webhook_url:/etc/alertmanager/slack_webhook_url:ro
ports:
- '127.0.0.1:9093:9093'
restart: unless-stopped
@@ -795,7 +797,8 @@ groups:
# monitoring/alertmanager.yml
global:
resolve_timeout: 5m
- slack_api_url: '${SLACK_WEBHOOK_URL}'
+ # Alertmanager does not expand env vars in its config, so mount the webhook URL as a file.
+ slack_api_url_file: /etc/alertmanager/slack_webhook_url
route:
group_by: ['alertname', 'severity']