Hi everyone,
I am trying to setup some alarms in the Dashboards. I just cannot figure out how to change the SMTP settings.
It is set to localhost but that does not work. So I want to change that to my email server.
Anyone know how to do that?
Andy
Mykola
January 18, 2017, 1:25pm
2
Hi Andy,
you can change config file.
documentation - [URL]Configure Grafana | Grafana documentation
but please keep in mind that you lose your changes after docker image update
[smtp]
;enabled = false
;host = localhost:25
;user =
;password =
;cert_file =
;key_file =
;skip_verify = false
;from_address = admin@grafana.localhost
I had tried that. But changes in the file /etc/grafana/grafana.ini do not have any effect.
After changing the settings and restarting the services, the default values are still active.
So I assume, the actual config is overwritten from somewhere else.
Barrett
January 19, 2017, 10:32am
4
Hi Andy,
Does your grafana.ini file’s SMTP section look something like what I posted below? Can you post it?
[smtp]
enabled = true
host = fqdn:port
user = myuser
password = mypass
cert_file =
key_file =
skip_verify = false
from_address = admin@grafana.localhost
Mykola
January 19, 2017, 3:41pm
5
Hi Andy,
I entered AWS SES smtp server credentials, everything is working fine.
my steps:
run bash inside container
docker exec -it pmm-server /bin/bash
open editor on /etc/grafana/grafana.ini file
[smtp]
enabled = true
host = email-smtp.us-east-1.amazonaws.com:25
user = SOME_ACCEESS_ID
password = SOME_SECRET_ID
;key_file =
;skip_verify = false
from_address = from-email@some-domain.com
save changes and exit from containers bash
restart container
docker restart pmm-server
go to Grafana “login” page [url]http://PMM.SERVER.IP/graph/login[/url]
click “Sign up”
enter another email and press “sign up” button
find email in your mail client