Skip to content

Instantly share code, notes, and snippets.

@AlexeySetevoi
Last active October 16, 2022 21:39
Show Gist options
  • Save AlexeySetevoi/0d260233bcfac710c9ab54dd15071b3f to your computer and use it in GitHub Desktop.
Save AlexeySetevoi/0d260233bcfac710c9ab54dd15071b3f to your computer and use it in GitHub Desktop.
Alertmanager 0.24.0 telegram receiver send example
route:
group_by: [ 'job', 'alertname', 'priority' ]
group_wait: 30s
group_interval: 5m
repeat_interval: 12h
receiver: 'telegram'
routes:
- receiver: 'null'
matchers:
- alertname =~ "InfoInhibitor|Watchdog"
- receiver: 'telegram'
continue: true
receivers:
- name: 'null'
- name: 'telegram'
telegram_configs:
- bot_token: <full:bot_token>
chat_id: <send_chat_id_with_hyphen>
api_url: 'https://api.telegram.org'
parse_mode: 'HTML'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment