Grafana SMTP Configuration (Gmail)

Grafana SMTP Configuration (Gmail)

Grafana is an open-source metric analytics & visualization suite. This blog post will explore Grafana SMTP Configuration (Gmail). It is most commonly used for visualizing time series data for Internet infrastructure and application analytics. Still, many use it in other domains, including industrial sensors, home automation, weather, and process control.

Setting up Grafana

Grafana is a famous open-source graph and dashboard builder for visualizing time series data. You will need to configure a few things first to use Gmail as your SMTP server for Grafana notifications.

1. Log into your Gmail account and go to the settings page.

2. Under the “Forwarding and POP/IMAP” tab, enable IMAP access by selecting “Enable IMAP.”

3. Next, generate a unique app password for Grafana by going to the “Security” tab and scrolling down to the “App Passwords” section. Select “Other” as the app you are generating a password for, and give it a name like “Grafana.” Copy the generated password somewhere safe, as you will need it later.

4. Head over to your Grafana instance’s configuration file (usually located at /etc/grafana/grafana.ini). Find the [smtp] section and fill in the following values:

host =

user = [email protected]

password = your_app_password

From_address = Your Name

secure = true

starttls = true

Configuring SMTP

Assuming you have a Gmail account:

1. Log in to your Gmail account and go to settings.

2. Find the “Forwarding and POP/IMAP” tab and click “Enable IMAP.”

3. Within the “IMAP Access” section, click “Save Changes.”

4. Download, install, and open Grafana.

5. Click the gear icon in the top right corner to open Grafana’s settings menu.

6. Click the “Notifications” tab within Grafana’s settings menu.

7. Enter your Gmail address in the “SMTP Host” field and set the port to 587.

8. Set the security setting to “TLS.”

9a. If you have 2-step verification enabled on your Gmail account, create an app password specifically for Grafana and enter that in the “SMTP Password” field. 9b. If you don’t have 2-step verification enabled on your Gmail account, enter your regular password in the “SMTP Password” field.

10. Test your configuration by clicking the “Send Test Email” button at the bottom of Grafana’s SMTP settings page.


We have shown you how to configure Grafana to use Gmail as its SMTP server. This will allow you to send email alerts from Grafana when certain conditions are met. Although we used Gmail in this example, you can use any SMTP server you like. Just be sure to follow the instructions carefully so that your emails are delivered successfully.

Also Read : [Fix] Connection To Outgoing Server Failed?

+ posts

Emma Robinson is a self-proclaimed "tech geek" who loves nothing more than to stay up-to-date on the latest and greatest in the tech world. Emma's love of all things tech began at a young age when she would take apart her family's computers just to see how they worked.

Leave a Comment