inCaller / prometheus_bot

Telegram bot for prometheus alerting
MIT License
395 stars 182 forks source link

Multiple templates support #49

Open killmeplz opened 4 years ago

killmeplz commented 4 years ago

For some alertmanager cases like this:

route:
  group_by: ['alertname']
  receiver: general
  routes:
   - match:
       job: different
     receiver: cicd

- name: 'general'
  webhook_configs:
  - send_resolved: true
    url: http://telegram-bot:9087/alert/-1234567

- name: 'cicd'
  webhook_configs:
  - send_resolved: true
    url: http://telegram-bot:9087/alert/-1234567889