在grafana仪表板中如何设置警报邮件配置?

Anu*_*uru 2 influxdb grafana

  • Grafana 4.0 版

  • 数据源流入数据库

请把我当作初学者。为此,如何在 Grafana 仪表板中设置警报?警报发送到电子邮件。

/etc/grafana/grafana.ini
Run Code Online (Sandbox Code Playgroud)

我写了这样的 SMTP 配置:

[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
Run Code Online (Sandbox Code Playgroud)

当我在 Grafana 仪表板中设置警报时,其显示错误:

template variables are not supported.
Run Code Online (Sandbox Code Playgroud)

Sep*_*sta 7

将此/usr/share/grafana/conf/defaults.ini文件配置如下:

[smtp]

enabled = true

host = smtp.gmail.com:587

user = Your_Email_Address@gmail.com

password = """Your_Password"""

cert_file =

key_file =

skip_verify = true

from_address = Your_Email_Address@gmail.com

from_name = Your_Name

ehlo_identity =
Run Code Online (Sandbox Code Playgroud)

在这个例子中,我用它的 SMTP:
smtp.gmail.comwith 587(TLS)port设置了我自己的 Gmail 帐户。

您应该找到您的 SMTP 电子邮件地址及其端口。

[注意]
不要忘记把你的密码放在password_field 中