Sign inSign up

maestroalubia/prometheus_bot

By maestroalubia

•Updated almost 10 years ago

Telegram bot for prometheus alerting

Image
0

631

maestroalubia/prometheus_bot repository overview

⁠prometheus_bot

This bot is designed to alert messages from alertmanager⁠.

⁠Usage

  1. Specify telegram token in config.yaml:

    telegram_token: "token goes here"
    
  2. Run telegram_bot. See prometheus_bot --help for command line options

  3. Add your bot to a group. It should report group id now

⁠Configuring alertmanager

Here's the receivers part of the alertmanager configuration file:

- name: 'admins'
  webhook_configs:
  - send_resolved: True
    url: http://127.0.0.1:9087/alert/chat_id

Replace chat_id with the number you got from your bot. To use multiple chats just add more receivers.

Tag summary

Content type

Image

Digest

Size

268.3 MB

Last updated

almost 10 years ago

docker pull maestroalubia/prometheus_bot