Simple flask application to recive notifications from prometheus alert manager on telegram and sms(via Kavenegar)
python3 -m venv .venv
source .venv/bin/activate
pip install -r requrements.txt
- Edit webhook.py and set your telegram_bot_token, telegram_chat_id, kavenegar_api_key, kavenegar_sender and kavenegar_receptor
sudo mv ./webhook.service /lib/systemd/system/
sudo ln -s /lib/systemd/system/webhook.service /etc/systemd/system/webhook.service
sudo systemctl daemon-reload
sudo systemctl start webhook.service
sudo systemctl enable webhook.service