Skip to content
/ prombot Public

Converts alerts sent by prometheus to text message and send them to a telegram bot

License

Notifications You must be signed in to change notification settings

vche/prombot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prombot

Description

Converts alerts sent by prometheus to text message and send them to a telegram

Example message:

{config.MESSAGE_PREFIX} firing: <alert 1 summary>, <alert 2 summary>

firing(link to alert): <alert 1 description>
firing(link to alert): <alert 2 description>

Local Installation

virtualenv pyvenv
git clone xxx
cd xxx
pip install .
pyvenv/bin/prombot

Configure config.py, especially the telegram bot part

Docker

Build

docker build -t prombot .

Run

Create a local copy and configure config.py (i.e. in /home/docker/config.py), especially the telegram bot part.

docker pull vche/prombot
docker run -p 9087:9087 -v /home/docker/config.py:/prombot/config.py prombot

Docker compose

  prombot:
    container_name: prombot
    image: vche/prombot
    ports:
      - 9087:9087
    volumes:
      - /home/docker/config.py:/prombot/config.py

About

Converts alerts sent by prometheus to text message and send them to a telegram bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published