Difference between revisions of "Setup SMTP in Grafana"
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
root@gejoreuy:~# sudo apt-get update | root@gejoreuy:~# sudo apt-get update | ||
root@gejoreuy:~# sudo apt-get install ssmtp | root@gejoreuy:~# sudo apt-get install ssmtp | ||
+ | |||
+ | === Step 3 : Edit SSMTP Configuration === | ||
+ | |||
+ | Go to '''/etc/ssmtp/''' directory and edit '''ssmtp.conf''' file like below configuration. | ||
+ | |||
+ | root@gejoreuy:~# vi /etc/ssmtp/ssmtp.conf | ||
+ | root=gejoreuy@gmail.com | ||
+ | mailhub=smtp.gmail.com:587 | ||
+ | FromLineOverride=YES | ||
+ | AuthUser=gejoreuy@gmail.com | ||
+ | AuthPass=mypassword | ||
+ | UseTLS=YES | ||
+ | UseSTARTTLS=YES |
Revision as of 17:29, 15 May 2020
Contents
Introduction
Grafana is a tools for visualisation dashboard monitoring which work together with various datasource.
In its use, we'll need SMTP activated to do some functionality like email alerting, notification, or invitation request.
Assumptions
In this page, we assumed that we already know about Grafana and have it run in a server.
In our example, we are going to use Google Gmail as SMTP server.
Step by Step
Step 1 : Prepare Gmail Account
Just go to https://myaccount.google.com/lesssecureapps and set allow less secure apps to ON.
Step 2 : Update and install SSMTP
We'll update our Grafana server and install SMTP on it.
root@gejoreuy:~# sudo apt-get update root@gejoreuy:~# sudo apt-get install ssmtp
Step 3 : Edit SSMTP Configuration
Go to /etc/ssmtp/ directory and edit ssmtp.conf file like below configuration.
root@gejoreuy:~# vi /etc/ssmtp/ssmtp.conf root=gejoreuy@gmail.com mailhub=smtp.gmail.com:587 FromLineOverride=YES AuthUser=gejoreuy@gmail.com AuthPass=mypassword UseTLS=YES UseSTARTTLS=YES