如何使用舵图向Prometheus-operator添加SMTP设置?

时间:2019-06-17 20:42:22

标签: grafana prometheus kubernetes-helm prometheus-operator

我正在通过values.yaml提供smtp配置,但是grafana无法进行此设置

通过values.yaml这样提供的smtp配置


{ 
"grafana.ini":{ 
     "smtp": {
     "enabled": true, 
     "host" : "smtp.mailtrap.io:25", 
     "user" : "username", 
     "password" : "password" 
             } 
              } 
}

在cmd下面用于安装图表

helm install stable/prometheus-operator --name prometheus-operator --namespace monitoring -f values.yaml

更新值后,grafana应该能够发送电子邮件,但我发现http://localhost:3000/admin/settings并未使用values.yaml文件提供的值进行更新

1 个答案:

答案 0 :(得分:0)

您需要参考Grafna chart

# `existingSecret` is a reference to an existing secret containing the smtp configuration