This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
сервис_grafana [2022/03/14 11:34] val [Docker] |
сервис_grafana [2022/03/14 11:37] val [Настройка уведомлений] |
||
---|---|---|---|
Line 102: | Line 102: | ||
===== Настройка уведомлений ===== | ===== Настройка уведомлений ===== | ||
+ | ==== Настройка модуля smtp ==== | ||
<code> | <code> | ||
# cat /etc/grafana/grafana.ini | # cat /etc/grafana/grafana.ini | ||
Line 115: | Line 116: | ||
startTLS_policy = NoStartTLS | startTLS_policy = NoStartTLS | ||
... | ... | ||
- | </code><code> | + | </code> |
+ | |||
+ | ==== grafana 7.X.X ==== | ||
+ | |||
+ | <code> | ||
# service grafana-server restart | # service grafana-server restart | ||
или | или | ||
Line 122: | Line 127: | ||
Alerting->Notification Channels ... | Alerting->Notification Channels ... | ||
userX/Email/userX@isp.un | userX/Email/userX@isp.un | ||
- | | + | student/Email/student@corp13.un |
- | Alerting->Contact Points->New Contact Point | + | |
- | Name: student | + | |
- | Email: student@corp13.un | + | |
Dashboard->Panel (name)->Edit->Alert->...-> | Dashboard->Panel (name)->Edit->Alert->...-> | ||
Evaluate every: 15s For 1m | Evaluate every: 15s For 1m | ||
- | WHEN avg() OF query(B,1m,now) IS ABOVE 8 или 1 | + | WHEN avg() OF query(B,1m,now) IS ABOVE 8 |
Send To: userX/student | Send To: userX/student | ||
Apply->Save Dashboard!!!! | Apply->Save Dashboard!!!! | ||
</code> | </code> |