Skip to main content

Bot only used for monitoring purpose

Project description

This is a goddamn bot


In Grafana, you have the option to bind an alert from your metrics data, to a Telegram Bot (see doc).

This is convenient to be alerted via instant messaging (no delay, few of configuration needed…)


Bot examples are given here.

By reading the official docs, you should have get a Bot Token. Store it in a secure way and retrieve it in your code (I personally store the bot token in an environment variable in a container)

Dont forget to install the python-telegram-bot package when copy/pasting examples :)

When the code of your bot is ready, deploy it or launch it : python If dockerized, use docker run -d warden_bot.

In Telegram Messaging App, you should be able to start a new group, and to add your bot in.

The last thing you need is the Chat ID of the group you just created. To retrieve it, checkout the Telegram Api :{BOT_TOKEN}/getUpdates

In case of troubles, see this post.

Then, just put the chat ID and the bot ID in your Grafana alert handler and test it.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WardenBot-0.62.tar.gz (3.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page