Skip to main content

4.1 Grafana Email Configuration

What

Use thethis below methodprocess to configureenable emailSMTP infor Grafana so alert notifications can be sent by email.

When/Why

EmailConfigure mustemail bebefore configuredyou increate advanceor oftest creatingalert any Alerts.notifications.

How

AtEdit this time, it involves editing athe Grafana iniconfiguration file.file on the FileWave Server:

/usr/local/etc/filewave/grafana/conf/filewave.ini

Add or update the following[smtp] smtpsection section, edited to matchwith your credentials,mail intoserver thedetails. aboveSet filewave.inienabled file:= true so Grafana can actually send mail.

#################################### SMTP / Emailing #####################
[smtp]
enabled = falsetrue
host = localhost:25smtp.example.com:587
user = smtp-user
# If the password contains # or ; you have to wrap it within triple quotes.quotes, Exfor example """#password;"""
password = cert_file =
key_file ="""smtp-password"""
skip_verify = false
from_address = admin@grafana.localhostalerts@example.com
from_name = FileWave Grafana
ehlo_identity =
 
[emails]
welcome_email_on_sign_up = false
templates_pattern = emails/*.html

Details on configuringLeave the filewave.iniexisting fileFileWave-specific maysettings bein foundplace, atand only change the SMTP values you need.

For the full list of available SMTP options, see Grafana's Configurationconfiguration Documentationdocumentation:.

After

saving the

Do not edit entries already created within this file.

Once done,file, restart the FileWave Server Service:so Grafana reloads the configuration:

sudo

filewavefwcontrol server restart

FromThen open Grafana, go to the WebAlerting Admin,section, choose

    Contact Dashboardpoints, >create Alertingor (Belledit Icon)an >Email Notificationcontact Channels

    select New Channelpoint, and addsend detailsa astest desired.  Once done choose Send Test.  You should receive an email.notification.