我试图在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存储桶,但是如果是这种情况,我很惊讶在日志中看不到任何错误消息。一些指示渲染操作的日志消息和其他不显示。
答案 0 :(得分:4)
问题是我忘了评论
# provider = s3
provider = s3