• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
The Blog of Jorge de la Cruz

The Blog of Jorge de la Cruz

Everything about VMware, Veeam, InfluxData, Grafana, Zimbra, etc.

  • Home
  • VMWARE
  • VEEAM
    • Veeam Content Recap 2021
    • Veeam v11a
      • Veeam Backup and Replication v11a
    • Veeam Backup for AWS
      • Veeam Backup for AWS v4
    • Veeam Backup for Azure
      • Veeam Backup for Azure v3
    • VeeamON 2021
      • Veeam Announces Support for Red Hat Enterprise Virtualization (RHEV/KVM)
      • Veeam announces enhancements for new versions of Veeam Backup for AWS v4/Azure v3/GVP v2
      • VBO v6 – Self-Service Portal and Native Integration with Azure Archive and AWS S3 Glacier
  • Grafana
    • Part I (Installing InfluxDB, Telegraf and Grafana on Ubuntu 20.04 LTS)
    • Part VIII (Monitoring Veeam using Veeam Enterprise Manager)
    • Part XII (Native Telegraf Plugin for vSphere)
    • Part XIII – Veeam Backup for Microsoft Office 365 v4
    • Part XIV – Veeam Availability Console
    • Part XV – IPMI Monitoring of our ESXi Hosts
    • Part XVI – Performance and Advanced Security of Veeam Backup for Microsoft Office 365
    • Part XVII – Showing Dashboards on Two Monitors Using Raspberry Pi 4
    • Part XIX (Monitoring Veeam with Enterprise Manager) Shell Script
    • Part XXII (Monitoring Cloudflare, include beautiful Maps)
    • Part XXIII (Monitoring WordPress with Jetpack RESTful API)
    • Part XXIV (Monitoring Veeam Backup for Microsoft Azure)
    • Part XXV (Monitoring Power Consumption)
    • Part XXVI (Monitoring Veeam Backup for Nutanix)
    • Part XXVII (Monitoring ReFS and XFS (block-cloning and reflink)
    • Part XXVIII (Monitoring HPE StoreOnce)
    • Part XXIX (Monitoring Pi-hole)
    • Part XXXI (Monitoring Unifi Protect)
    • Part XXXII (Monitoring Veeam ONE – experimental)
    • Part XXXIII (Monitoring NetApp ONTAP)
    • Part XXXIV (Monitoring Runecast)
  • Nutanix
  • ZIMBRA
  • PRTG
  • LINUX
  • MICROSOFT

Grafana: Using Microsoft Teams for our notifications when established thresholds are exceeded

27th September 2019 - Written in: veeam

Greetings friends, after so many years counting all the possibilities Grafana, InfluxDB and Telegraf, I have come to realize that we have never dealt with the subject of notifications, so that Grafana alerts us when a value exceeds a certain threshold.

Grafana has several methods of sending notifications, Email, Slack and many others that you can see here:

  • https://grafana.com/docs/alerting/notifications/

Today I come to tell you how to configure the notification to Microsoft Teams

Webhook Configuration in Microsoft Teams

To be able to receive notifications to a specific channel, we will have to create a Webhook in the channel we need, normally it would be a channel to receive alarms, instead of bombarding the General channel or similar.

In the channels where we need notifications, imagine that we want a certain team to receive notifications of their applications, we will go to the channel – ConnectorsSelect the connector called Incoming Webhook: Select now the big button called Add: Select the name we want for our Webhook, as well as an icon that we like: When you click Create, will show a unique URL with the Incoming Webhook, this is the address we want to use in Grafana:

Configuration of our alarms in Grafana

Now that we have everything ready, we can go to our Grafana, and in the menu on the left we can click on Alerting – Add channel:We will select a name that we like, besides selecting the values that we want in the options, we have to mark Default and for example images if we want to receive images in our Teams: When making a test, we will be able to see in our channel of Microsoft Teams an alert of test: Inside our Dashboards of Grafana, we will select the graph of which we need to extract the value to monitor with thresholds: We will go to the Alerting part, is an icon on the left very easy to discern, we will introduce now the thresholds of the query we need, for how many minutes it has to happen to be considered alarm, and we will see below the notifications to Email and Teams: When we exceed the threshold we have introduced, during the time stipulated, we will receive the alarm in the Microsoft Teams channel: An important issue, not all the ways of showing metrics allow us notifications, for example the singlestat does not allow it, but the graphs do.

Nothing more friends, I hope you like it, and you will find it useful.

Filed Under: veeam Tagged With: grafana, grafana microsoft teams, grafana teams, grafana to teams channel, grafana webhook

Reader Interactions

Comments

  1. Danilo Camargo says

    28th October 2019 at 3:29 pm

    hi, I’m trying to set up this alert here, but I get the error:

    t=2019-10-28T15:09:20+0000 lvl=eror msg=”Failed to send teams notification” logger=alerting.notifier.teams error=”Post https://outlook.office.com/webhook/d6929fff-e319-4a0c-bedc-57da6f663121@ce849bab-cc1c-465b-b62e-18f07c9ac198/IncomingWebhook/e97727a32d764620b0e5ef0d23443/ad71f4a5-d3bb-4049-87e7-4f3fa3860725: dial tcp: lookup outlook.office.com on 127.0.0.11:53: no such host”

    Do you know what may cause it ?

  2. jorgeuk says

    28th October 2019 at 3:47 pm

    Hello Danilo,
    Does your Grafana server has access to the Internet, not only that, but also proper DNS resolution? It seems that the DNS server 127.0.0.11 on the port 53 can not be reached, which it is a really weird DNS configuration anyways.

    Take a look at your DNS resolution on your Grafana server.

    Best regards

  3. Agnese says

    28th November 2019 at 12:19 pm

    Hi, Thank you! It works fine, but when on mobile device (Android) alert doesn’t give any details about the graph is the alert (so that I can consider is it critical or not). How this could be solved?

  4. jorgeuk says

    28th November 2019 at 4:48 pm

    Hello Agnese,
    Can you please share a screenshot with me? Thank you!

  5. Agnese says

    29th November 2019 at 12:54 pm

    Here the same issue with print screen

    https://techcommunity.microsoft.com/t5/Microsoft-Teams/Messages-in-the-mobile-app-channel-don-t-display-any-data-apart/m-p/471307

  6. Agnese says

    4th December 2019 at 8:05 am

    Hi,
    Do you have any idea how to solve it so that mobile shows at least name of graph?

  7. jorgeuk says

    4th December 2019 at 5:57 pm

    Hello,
    It seems it is a bug on Grafana itself, I will need to check on github.

    Best regards

  8. StefanS says

    23rd March 2020 at 2:38 pm

    I have the same VMWare dashboard as you, but i get this error message when adding the alert.

    “Template variables are not supported in alert queries”

    Don’t you use template variables?

    Best regards

  9. jorgeuk says

    23rd March 2020 at 3:06 pm

    Hello,
    For alerts, you need to use a query without a variable, it is a pain to be honest, but I am preparing another post in how to send alerts for this in a better fashion.

  10. StefanS says

    23rd March 2020 at 3:12 pm

    jorge
    that would be perfect, i would be happy if your post would appear in the matter soon.

  11. Tibério Rosa says

    17th April 2020 at 1:37 pm

    Your post helped me a lot! Thanks!

  12. jordanmoniot says

    20th May 2020 at 12:29 am

    Hello,

    /* sorry for my bad english */

    Thanks for the post. I’ve already done this configuration but i don’t get how can we see graphs in the alert (on Teams).

    When i’m testing it, it’s working fine.
    But when i receive a real alert, any graph is present in the alert’s message.

    Do you have any idea about how can i solve this please ?

    Thanks,

    Jordan

  13. NURZHAN RAIMZHAN says

    28th August 2020 at 5:45 am

    I am getting alert on team but with {} what that means

  14. cji says

    21st September 2020 at 6:33 am

    I’m running grafana on a VM and when I tried to test it, it failed with x509: certificate signed by unknown authority error message. Do you have an idea to solve this?

  15. jorgeuk says

    21st September 2020 at 10:28 am

    Hello,
    I always run Grafana with valid SSL, try to take a look at the next steps – https://www.jorgedelacruz.es/2019/06/04/grafana-securizando-nuestros-dashboards-en-grafana-usando-https-con-lets-encrypt-de-manera-gratuita-y-renovacion-automatizada/

  16. cji says

    22nd September 2020 at 5:48 am

    is it possible to send an alert message to ms teams without any certificates?
    For example, in terminal window I can send a message to ms teams via incoming webhook using curl –insecure option.

  17. Luis Dias says

    19th January 2021 at 3:47 pm

    Thank you very much. So detailed and useful. I got it in the first try.

  18. daniele says

    14th March 2021 at 6:43 pm

    Very useful! Thanks! Which is in your opinion the best way to send alerts with queries with template and variables?

  19. jorgeuk says

    14th March 2021 at 7:17 pm

    Still looking for the best option, will post it once finish all the tests 🙂

  20. sagar says

    2nd April 2021 at 3:44 pm

    Hi it’s really nice one to have for the beginner. But, the alert is still being not triggered over teams. What could be the issue? Please suggest some tips.

  21. jorgeuk says

    3rd April 2021 at 12:29 am

    Hello, let me try tomorrow and will come back to you

  22. sagar says

    5th April 2021 at 11:08 am

    Thanks for the response sir!! Just wondering in case you cracked any solution for my question. Please advise.

  23. Pranav Shewale says

    12th April 2023 at 7:39 am

    I am also not able to send alerts from Grfana with Teams

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

  • E-mail
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • YouTube

Posts Calendar

September 2019
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Aug   Oct »

Disclaimer

All opinions expressed on this site are my own and do not represent the opinions of any company I have worked with, am working with, or will be working with.

Copyright © 2025 · The Blog of Jorge de la Cruz