Last time I wrote an article on installing pmm to monitor mysql , but I didn't write about the configuration part of the alarm. It's actually very simple. Let's write these.
docker exec -it 57e88bade14f /bin/bash
vim /etc/grafana/grafana.ini
#################################### SMTP / Emailing ##########################
[smtp]
enabled = true
host = "smtp.mxhichina.com:80"
user = "[email protected]"
# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
password = 123456
;cert_file =
;key_file =
;skip_verify = false
from_address = "[email protected]"
from_name = Grafana
[emails]
;welcome_email_on_sign_up = false
If there is an error message
tail -f /var/log/grafana/grafana.log
Finally, test and send it on the WEB interface.