【问题标题】:How to add prometheus data source for grafana with helm?如何用helm为grafana添加prometheus数据源? 【发布时间】:2020-05-07 10:18:09 【问题描述】: 我尝试了很多来源,例如http://prometheus-server.default:9090,但我收到了HTTP Error Bad Gateway 【问题讨论】: 标签: prometheus grafana kubernetes-helm 【解决方案1】: 只需使用http://localhost:9090 无需使用http://prometheus-server.default:9090,如果您的promitheus 在其他服务器上使用ip 或域然后 【讨论】: 它不起作用。如问题所述,它在 kubernetes 集群上加载了 helm,而不是在 localhost 【解决方案2】: 找到了。 helm prometheus包为grafana提供的服务器HTTP URL为: http://prometheus-server。 【讨论】: