hatamiarash7/Prometheus-Telegram · 文件 下载 ZIP
文件最后提交记录最后更新时间
README.md
Prometheus-Telegram
It's a simple API to handle alert requests and send them via Telegram.

How-to use
-
Create a Telegram bot using botfather
-
Keep
BOT TOKENfor later -
Get your Chat id using @BotChatId_bot ( Or other bots/ways )
-
Run image with required environment variables
docker run -d -p 8127:8127 \ -e TG_HOST=https://api.telegram.org \ -e TG_BOT_TOKEN='291043804:AAGHDLwaXNN2U2oI0uxCR35KsivsxNUqT3o' \ -e TG_CHAT_ID='-200160323059' \ hatamiarash7/telegram-handler:v1.2.0 -
Use alertmanager to send alerts using webhook to
http://<IP>:8127/api/alertURL
Proxy
We have a TG_HOST env variables here to bypass any filtering or blocking. You can proxy your custom domain to https://api.telegram.org and use it here.
https://telegram.domain.com -> https://api.telegram.org
There are many ways to do that, just search for it 😃
Support 💛
Contributing 🤝
Don't be shy and reach out to us if you want to contribute 😉
- Fork it !
- Create your feature branch :
git checkout -b my-new-feature - Commit your changes :
git commit -am 'Add some feature' - Push to the branch :
git push origin my-new-feature - Submit a pull request
Issues
Each project may have many problems. Contributing to the better development of this project by reporting them. 👍