Skip to content

Instantly share code, notes, and snippets.

@stokito
Created December 7, 2022 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stokito/f524e7964f9f10e4143bc66dc6dfff6e to your computer and use it in GitHub Desktop.
Save stokito/f524e7964f9f10e4143bc66dc6dfff6e to your computer and use it in GitHub Desktop.
Prometheus AlertsManager Telegram config
# 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