本文介绍了如何在Kube-Prometheus-Stack中添加Grafana的预置通知通道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我正在寻找如何设置预配置的通知通道,它在舵图中是uidhttps://github.com/prometheus-operator/kube-prometheus

仪表板正在引用通知通道,但添加通知通道本身的示例YAML是什么?

推荐答案

示例Yaml文件:https://github.com/grafana/grafana/blob/main/conf/provisioning/notifiers/sample.yaml

如果您使用的是舵图,则可以从值配置。yaml

示例:https://github.com/devnulled/charts/blob/24f03dafab2f05f01f6316ba78f9de04adb02f3b/stable/grafana/values.yaml

notifiers: {}
#  notifiers.yaml:
#    notifiers:
#    - name: email-notifier
#      type: email
#      uid: email1
#      # either:
#      org_id: 1
#      # or
#      org_name: Main Org.
#      is_default: true
#      settings:
#        addresses: [email protected]
#    delete_notifiers:

文档:https://grafana.com/docs/grafana/latest/administration/provisioning/#alert-notification-channels

提交详细信息:https://github.com/devnulled/charts/commit/24f03dafab2f05f01f6316ba78f9de04adb02f3b

这篇关于如何在Kube-Prometheus-Stack中添加Grafana的预置通知通道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 04:49