Created
December 7, 2022 22:39
-
-
Save stokito/f524e7964f9f10e4143bc66dc6dfff6e to your computer and use it in GitHub Desktop.
Prometheus AlertsManager Telegram config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://github.com/prometheus/alertmanager/pull/2827 | |
# https://prometheus.io/docs/alerting/latest/configuration/#telegram_config | |
route: | |
group_by: ['alertname'] | |
group_wait: 30s | |
group_interval: 5m | |
repeat_interval: 1h | |
receiver: "telegram" | |
receivers: | |
- name: 'telegram' | |
telegram_configs: | |
- api_url: https://api.telegram.org | |
bot_token: 'YOUR_BOT_TOKEN' | |
chat_id: -123456 | |
inhibit_rules: | |
- source_match: | |
severity: 'critical' | |
target_match: | |
severity: 'warning' | |
equal: ['alertname', 'dev', 'instance'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment