Telegram integration for Grafana OnCall
You can manage alerts either directly in your personal Telegram DMs or in a dedicated team channel.
Configure Telegram user settings in Grafana OnCall
To receive alert group contents, escalation logs and to be able to perform actions (acknowledge, resolve, silence) in Telegram DMs, please refer to the following steps:
- In your profile, find the Telegram setting and click Connect.
- Click Connect automatically for the bot to message you and to bring up your telegram account.
- Click Start when the OnCall bot messages you and wait for the connection confirmation.
- Done! Now you can receive alerts directly to your Telegram DMs.
If you want to connect manually, you can click the URL provided and then SEND MESSAGE. In your Telegram account, click Start.
(Optional) Connect to a Telegram channel
In case you want to manage alerts in a dedicated Telegram channel, please use the following steps as a reference.
NOTE: Only Grafana users with the administrator role can configure OnCall settings.
- In OnCall, click on the ChatOps tab and select Telegram in the side menu.
- Click Connect Telegram channel and follow the instructions, mirrored here for reference. A unique verification code will be generated that you must use to activate the channel.
- In your team Telegram account, create a new channel, and set it to Private.
- In Manage Channel, make sure Sign messages is enabled.
- Create a new discussion group. This group handles alert actions and comments.
- Add the discussion group to the channel. In Manage Channel, click Discussion to find and add the new group.
- In OnCall, click the link to the OnCall bot to add it to your contacts.
- In Telegram, add the bot to your channel as an Admin. Allow it to Post Messages.
- Add the bot to the discussion group.
- In OnCall, send the provided verification code to the channel.
- Make sure users connect to Telegram in their OnCall user profile.
Each alert group is assigned a dedicated discussion. Users can perform actions (acknowledge, resolve, silence), and discuss alerts in the comments section of the discussions. In case an integration route is not configured to use a Telegram channel, users will receive messages with alert group contents, logs and actions in their DMs.
Was this page helpful?
Related resources from Grafana Labs
![Getting started with the Grafana LGTM Stack](/static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=200 200w, /static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=400 400w)
![Intro to Kubernetes monitoring in Grafana Cloud](/media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=200 200w, /media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=400 400w)
![Building advanced Grafana dashboards](/media/webinar/AMER_buildadv_notxt.png?w=200 200w, /media/webinar/AMER_buildadv_notxt.png?w=400 400w)