【发布时间】:2019-09-04 14:24:03
【问题描述】:
我正在尝试使用现有数据源、仪表板和通知渠道构建 Docker 容器。数据源和仪表板的配置工作正常,但通知通道的配置不工作。使用 Grafana v6.3.5(提交:67bad72)
我正在使用 Grafana Provisioning 文档中的示例配置。我已将其添加到/etc/grafana/provisioning/notifiers 目录中的一个名为AlertNotificationChannel.yaml 的文件中
我可以看到它正在处理文件,因为我可以在日志中看到一条消息“删除警报通知记录器=provisioning.notifiers name=notification-channel-1 uid=notifier1”。但是,没有关于插入或更新警报通知的消息,UI 中也没有任何消息。
yaml文件内容:
notifiers:
- name: notification-channel-1
type: slack
uid: notifier1
# either
org_id: 2
# or
org_name: Main Org.
is_default: true
send_reminder: true
frequency: 1h
disable_resolve_message: false
# See `Supported Settings` section for settings supporter for each
# alert notification type.
settings:
recipient: "XXX"
token: "xoxb"
uploadImage: true
url: https://slack.com
delete_notifiers:
- name: notification-channel-1
uid: notifier1
# either
org_id: 2
# or
org_name: Main Org.
我相信此功能是在 Grafana v5 之后添加的,我正在尝试遵循文档但无法正常工作。
【问题讨论】: