Grafana and Telegram Integration

Get any of the courses at a very special price. The offer is available only for a limited time.

Apache NiFi – Beginners to Advance Guide: https://itpanther.com/apachenifi
Apache NiFi – Admin Guide – Know Clustering and Other Advance Topics: https://itpanther.com/apachenifiadmin
Liferay – Create Your Website Without The Need to Code: https://itpanther.com/liferay
Grafana – Learn to do Analytics with Grafana: https://itpanther.com/grafana
Redis – Learn World’s Fastest Database: https://itpanther.com/redis
BMC Control-M for Beginners: https://itpanther.com/controlm

Sending Alerts from Grafana to Telegram is very popular method. Let’s learn the integration by following step by step approach. First thing you need is a Telegram bot to be created using Telegram “botfather”. Here are the steps for that:
Guess What, Below website already talks about this in detail, So I am not going to re-invent the wheel. You can read about that by following below link:
https://www.sohamkamani.com/blog/2016/09/21/making-a-telegram-bot/

Configurations Required in Grafana:
Step 01: Go to Grafana->Alerting->Notification Chanlles

Step 02: Click on “New Channel”

Step 03: Provide below details:
Name: You can give any logical name here. This is the same name you will be able to see while configuring alerts in Dashboard Visualization.
Type: Select “Telegram” here.
Bot API Token: Provide the Bot API Token, Which you received after creating a bot in Telegram “Botfather”.
Chat ID: In the below URL, Paste BOT API Token and then open the url on browser. This will provide you Chat ID of the Group your bot is part of.
https://api.telegram.org/bot<<Provide BOT API Token Here>>/getUpdates

Sample “Chat ID”

Step 04: Click on “Send Test” To verify that everything is working as expected. You should see a notification stating “Test Notification sent”

Step 05: Check in the Telegram in which you have added the bot. Bot should have received a test notification something similar to as shown below:

Thanks for reading, If you have any queries please feel free to write in the comments box below.

Get any of the courses at a very special price. The offer is available only for a limited time.

Apache NiFi – Beginners to Advance Guide: https://itpanther.com/apachenifi
Apache NiFi – Admin Guide – Know Clustering and Other Advance Topics: https://itpanther.com/apachenifiadmin
Liferay – Create Your Website Without The Need to Code: https://itpanther.com/liferay
Grafana – Learn to do Analytics with Grafana: https://itpanther.com/grafana
Redis – Learn World’s Fastest Database: https://itpanther.com/redis
BMC Control-M for Beginners: https://itpanther.com/controlm

1 thought on “Grafana and Telegram Integration”

  1. Hi,

    Is there any way to modify message body with variables?

    I mean, place query result in the body message like ${A}

Leave a Comment

%d bloggers like this: