我正在尝试让图表显示在 Slack 中的 Grafana v4 警报中。
当我使用测试通知按钮时,我得到了一个漂亮的图表。
但是,当我的警报没有通过图表时:(
以下是触发警报时我的日志:
t=2016-12-07T10:43:01+0000 lvl=info msg="New state change" logger=alerting.resultHandler alertId=1 newState=ok prev state=alerting
t=2016-12-07T10:43:01+0000 lvl=info msg="Sending notifications for" logger=alerting.notifier ruleId=1 sent count=1
t=2016-12-07T10:43:01+0000 lvl=info msg=Rendering logger=png-renderer path="dashboard-solo/db/sample-alerts?&panelId=1"
t=2016-12-07T10:43:07+0000 lvl=info msg=uploaded logger=alerting.notifier url=
t=2016-12-07T10:43:07+0000 lvl=info msg="Sending notification" logger=alerting.notifier type=slack id=1 isDefault=true
t=2016-12-07T10:43:07+0000 lvl=info msg="Executing slack notification" logger=alerting.notifier.slack ruleId=1 notification="Slack #skyline"
t=2016-12-07T11:05:17+0000 lvl=info msg="Initializing Alerting" logger=alerting.engine
t=2016-12-07T11:23:35+0000 lvl=info msg="New state change" logger=alerting.resultHandler alertId=2 newState=alerting prev state=pending
t=2016-12-07T11:23:35+0000 lvl=info msg="Sending notifications for" logger=alerting.notifier ruleId=2 sent count=1
t=2016-12-07T11:23:44+0000 lvl=info msg=uploaded logger=alerting.notifier url=
t=2016-12-07T11:23:44+0000 lvl=info msg="Sending notification" logger=alerting.notifier type=slack id=1 isDefault=true
t=2016-12-07T11:23:44+0000 lvl=info msg="Executing slack notification" logger=alerting.notifier.slack ruleId=2 notification="Slack #skyline"
我尝试配置 s3 存储桶,但我可能做得不正确,但我很惊讶在日志中没有看到任何错误消息(如果是这种情况)。一些日志消息指示渲染操作,而另一些则不指示。
最佳答案
问题是我忘了注释掉
# provider = s3
provider = s3
关于grafana - 通过 slack 发出警报,图像未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41027265/