It's All About Email Alerts in Grafana!

Configure Gmail for Grafana | Use Gmail SMTP Server for Grafana | Email Alerts from Grafana to Gmail

Estimated read time: 1:20

    Learn to use AI like a Pro

    Get the latest AI workflows to boost your productivity and business performance, delivered weekly by expert consultants. Enjoy step-by-step guides, weekly Q&A sessions, and full access to our AI workflow archive.

    Canva Logo
    Claude AI Logo
    Google Gemini Logo
    HeyGen Logo
    Hugging Face Logo
    Microsoft Logo
    OpenAI Logo
    Zapier Logo
    Canva Logo
    Claude AI Logo
    Google Gemini Logo
    HeyGen Logo
    Hugging Face Logo
    Microsoft Logo
    OpenAI Logo
    Zapier Logo

    Summary

    In this video, Bhoopesh Sharma provides a comprehensive guide on configuring Gmail SMTP settings for sending email alerts from Grafana. Starting from the basics of Grafana and Prometheus setup, he explains step-by-step how to integrate Gmail for sending alerts. This includes understanding different levels of alerts within Grafana, setting up SMTP configurations, and generating app passwords through Google for secure mailing. With a hands-on approach, Bhoopesh ensures viewers can seamlessly create and test email alerts directly from Grafana to their Gmail account.

      Highlights

      • Bhoopesh Sharma dives into the practical setup of sending emails from Grafana using Gmail! 📬
      • Discover how easy it is to configure SMTP and integrate Gmail for sending alerts from Grafana 📡
      • Step-by-step walkthrough to generate Gmail app passwords for email alerts 🔑

      Key Takeaways

      • Learn how to configure SMTP in Grafana for Gmail alerts 📧
      • Step-by-step guidance on setting up app passwords for secure emailing 🔐
      • Understand Grafana's alert mechanics and SMTP configurations 🚀

      Overview

      Bhoopesh Sharma opens his tutorial by addressing common queries about sending email alerts from Grafana, specifically using Gmail SMTP for the process. He systematically covers the fundamentals of Grafana setup, moving towards the configuration of SMTP settings that enable alerting functionalities.

        In the core of his presentation, Bhoopesh provides a live demonstration of installing Grafana and Prometheus, configuring SMTP through Gmail, and setting up the necessary app passwords. His practical approach ensures that viewers can replicate the process on their own systems with ease.

          He wraps up by highlighting the importance of understanding different types of alerts within Grafana and how to configure them effectively with Gmail SMTP settings. This tutorial equips users to not only set up alerts but also troubleshoot and enhance their email alert system in Grafana.

            Chapters

            • 00:00 - 00:30: Introduction to Email Alerts in Grafana This chapter provides an introduction to setting up email alerts in Grafana. The speaker addresses the common query of sending emails from Grafana. The focus is on explaining a quick integration method using Gmail to send alerts to any mailbox, utilizing specific SMTP configurations. The session aims to offer a straightforward approach to implementing this feature.
            • 00:30 - 05:30: Grafana Setup and SMTP Configuration In this chapter, the discussion revolves around setting up Grafana and configuring SMTP. The participants explored creating connections to Jira and understanding SQL queries to handle time series data. Further, there was a demonstration on designing dashboards, various methods to create dashboards, and engaging with metrics and logs. The chapter elaborated on utilizing log aggregation with Grafana using Loki in the context of tailing logs. Additionally, there was a session on how to set up alerts within Grafana to notify users of certain conditions or changes in data.
            • 09:00 - 10:00: Gmail Token Generation This chapter covers the process of setting up email configurations using Google email, specifically focusing on Gmail token generation. It begins with a brief mention of application-level monitoring using Tempo, a topic discussed in a previous video, indicating a shift from monitoring to setting up email alerts. The narrator promises a practical implementation and refers to a GitHub page as a resource for the procedure.
            • 10:00 - 12:00: Summary and Conclusion This chapter provides a summary and conclusion of a topic concerning setting up a monitoring and metric gathering system using Grafana in a cloud environment. The discussion begins with acknowledging an empty cloud setup with no ports or metrics sensors. It guides through the initial steps by setting up Grafana, running a command to install the Grafana stack, specifically the 'cube Prometheus popular stack' to facilitate the desired setup.

            Configure Gmail for Grafana | Use Gmail SMTP Server for Grafana | Email Alerts from Grafana to Gmail Transcription

            • 00:00 - 00:30 hello welcome to my channel again this is so today we'll be talking about another important topic about prithvana I received a lot of queries how to send emails from grafana so I'll be telling today the very quick and uh quick integration of Gmail so that you can send all your alerts to your any mailbox not using the Gmail server what kind of fmtp configuration
            • 00:30 - 01:00 can be created directly to jira and then we had understanding on from ql queries to understand the time series data then we saw what kind of corner dashboard how we can create what are the number of ways to create a click on a dashboard on matrices and then we so how we can do a log aggregation with grafana using lock-in from tail the fifth video sixth one how to create alert on the
            • 01:00 - 01:30 corner based alert and the alert manual based alert in this video into seven last one was how to do tracing of an applications you know application Level monitoring using Tempo and today we'll be discussing about how to do a email configuration setup using Google email already straightforward and pretty easy to do it okay so let's get started in Practical implementation of it so I already have a GitHub page for you so that and close this so this is the
            • 01:30 - 02:00 GitHub page readme SMTP so we'll be calling this documentation to make it happen right so quickly jumping onto this so suppose you have an empty Cloud so here there's nothing uh there's nothing in this okay there are no port in this qpt will get bought in this metric sensor so first of all we will set up our Primitives or Q premises grafana setup we'll just run this command and it will install the garfana the cube Prometheus popular stack from
            • 02:00 - 02:30 Google into the metric namespace from repository basically they promises Community Repository we'll copy this well to a quick install now this will install QR tackle chart onto my correct metric time say with no value whatever default values are coming it will get installed and then then we'll see what is happening okay so that will take this will take around 30 seconds or so to get it installed yeah it was quick
            • 02:30 - 03:00 so I'll just do a quick little get parts I'll CK get service I'll do a port forward of grip on a service let me see grafana is up and running or not now I'm installing it from scratch so that anybody can do it again what the real estate forward
            • 03:00 - 03:30 okay password is from operator if anyone is not aware about it so I'll come here I'll come to the contact points and the notification policies and then I'll click I'll just do a test whether my attempt is working or not because I have not compute anything it
            • 03:30 - 04:00 uh Raw Helm chart basically okay let me see now we will configure this piece which is important piece to understand right now the next step what I'll do I'll just install the same primitive subject I'll upgrade the theme from chart but with this in fmt very dot ml file now what is the value.aml file if
            • 04:00 - 04:30 you see I am passing if you concentrate on this I'm passing under grafana and I uh dsmtp related details enable true this will be SMTP host or basically Gmail server this is my email ID so this password you can actually memorize it but I'll just show you how to create token this is not my password is the clear token and then you can use this token and then yeah prompt will be this ROM
            • 04:30 - 05:00 name will be gracana now this is the grafana based alerting SMTP configuration now suppose as I already mentioned there are two kind of alerting the alert menu level alerting also so for the alert level manager alerting you need to come to this alert man attraction under receivers okay you need to use the same configuration you can simply copy paste this thing okay and no need to memorize it I'll be pasting it thing into the GitHub so for both the kind of alerting we need to set up SMTP once for grafana based another
            • 05:00 - 05:30 is called alert manual base right so this is the value.aml file that I'll be using it for upgrading my the sun chart he copy this login update my thumb chart so I'm upgrading my chart with these additional values okay I'll just cancel the feed dot I'll wait for the column chart to be
            • 05:30 - 06:00 now upgrade updated I think it will take another 30 seconds or so yeah it was quick again okay now let me see the helm chart has been updated or not yeah it is the second division such this has been upgraded let me see the cute little get pods is already being renamed I mean the new ports are created let me uh create the alert Mania ports also so that it can
            • 06:00 - 06:30 fix the latest configuration the SMTP configuration I'll delete this I'll do a cubes retail get parts already running alert minutes coming up so we'll just wait for a few more highlight memories also I'll just get service again now this could be the new grafana uh
            • 06:30 - 07:00 again we need to do a login again from put it now I'll come here same place hello contact point I'll come here then I'll again do a test email just to check whether my test is working or not perfect it's taking some time to send the alert yeah see that's alert then so we just
            • 07:00 - 07:30 appear effectively configure the mailbox using Gmail I'll just check whether received an email also or not a test email so you can see I received the test alert on grafana email directly from my group on a URL so we have already seen the creating tickets directly to jira but now we are checking we are looking how to create tickets directly into your Gmail or any other mailbox now this is something from grafana based alerting now you can see there are two
            • 07:30 - 08:00 kind of alerts one is alert another is alert menu is alert and I've already done the configuration code if you come here you see the alert manual configuration is also there see all this piece definitely the auth password is hidden so I'll just see whether is there any firing alert yes we have a firing alert watched over we should rightly get this also in our mailbox let me see yeah see this also became it came to
            • 08:00 - 08:30 zero minutes ago you can see the time yeah so yeah in this question you can get both alerts so this is alert and the second one is you can see the difference one alert for alert name and this is coming from alertman here now this is coming from good Corner based as you already know if you have not watched my earlier video you can just quickly see what kind of alerting are there in grafana perfect so this is what we saw now important and very important thing how to get token value okay
            • 08:30 - 09:00 token from your any any Gmail account so I'll show you how to edit you need to come here click on this manage your Google account okay then go to security then you'll come here this two-step verification okay
            • 09:00 - 09:30 when you come to the bottom there are app passwords if you click here now this is the one that had created it today only okay you can generate like this mail and you can do windows and then you can generate it like this and then you can copy this piece like this and then paste it like this right so this is how you need to do it so what I'll do I'll just simply do a done I delete these two so that you cannot
            • 09:30 - 10:00 use mine also right so yeah you're good to go so in this pattern you can generate this app password for any Gmail account okay and yeah that is that is pretty much I want to explain uh from this video I hope you like it a quick recap what we did we simply first of all we install the Q premature stack raw M chart when we saw that we were getting errors when we were
            • 10:00 - 10:30 sending email test email then we installed this piece again upgraded this launcher again with your SMTP values where we have given uh to this configuration two times one with the alerting and as it is alerting okay so yeah I think that is pretty much let's quickly wrap up this video if you if you like this video on this MTP and you want what further actions to be what for the videos to be taken for group constantly please note down in the comments section do subscribe the channel okay see you
            • 10:30 - 11:00 next time until then goodbye stay tuned thank you