Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In grafana dashboard how to set alert mail configuration?

  • Grafana version 4.0

  • Datasource influxDB

Please consider me as a beginner. For this, how to set alerts in Grafana dashboard? alerts send to emails.

/etc/grafana/grafana.ini

I wrote SMTP config like this:

[smtp] 
enabled = True
host = localhost:25
user = 
If the password contains # or ; you have to wrap it with trippel 
quotes. Ex """#password;"""
[emails]
welcome_email_on_sign_up = True

When I set alerts in Grafana dashboard its show error:

template variables are not supported.
like image 771
Anusha Konduru Avatar asked Dec 11 '25 17:12

Anusha Konduru


1 Answers

Configure this /usr/share/grafana/conf/defaults.ini file as the following:

[smtp]

enabled = true

host = smtp.gmail.com:587

user = [email protected]

password = """Your_Password"""

cert_file =

key_file =

skip_verify = true

from_address = [email protected]

from_name = Your_Name

ehlo_identity =

In this example, I set my own Gmail account with its SMTP:
smtp.gmail.com with 587(TLS) port.

You Should find your SMTP email address with its port.

[NOTE]
Don't forget to put your password in password_field.

like image 70
Sepehr roosta Avatar answered Dec 14 '25 11:12

Sepehr roosta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!