How to setup Gmail SMTP email notification with Grafana on ubuntu 16.04/18.04/20.04 LTS


 

In this post, We will configure Gmail’s SMTP email alert wtih Grafana on ubuntu 16.04/18.04/20.04 LTS

 

Grafana is a multi-stage open source examination and intelligent perception web application. It gives outlines, diagrams, and alarms for the web when associated with upheld information sources, Grafana Enterprise adaptation with extra capacities is additionally accessible. It is expandable through a module framework.


I believe you have already installed Grafana in your ubuntu machine if not, So then use the given link to install grafana on ubuntu 16.04/18.04/20.04 LTS.

 

https://www.techbeginner.in/2020/03/how-to-install-grafana-on-ubuntu-1604.html

 

Step 1: SMTP Configuration 
 

You need to open the grafana’s main configuration file by uisng the given command and update the required parameters.

sudo vim /etc/grafana/grafana.ini


And update the given parameter to configure Gmail SMTP.

[smtp]
enabled = true
host = smtp.gmail.com:465
user = xxxxxxxxx@gmail.com
# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
password = XXXXXXXXX
;cert_file =
;key_file =
skip_verify = false
from_address = xxxxxxxxxx@gmail.com
from_name = Grafana
# EHLO identity in SMTP dialog (defaults to instance_name)
;ehlo_identity = dashboard.example.com

[emails]
;welcome_email_on_sign_up = false

 

Save and exit from the text editor.

 

Step 2: Restart Grafana Service

 

You need to restart the Grafana service to get new changes.

sudo service grafana-server restart
sudo service grafana-server status

Conclusion

We have successfully configure Gmail’s smtp server in Grafana in our Ubuntu server.

How to setup Gmail SMTP email notification with Grafana on ubuntu 16.04/18.04/20.04 LTS

Leave a Reply

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

Scroll to top