如何使用helm为grafana添加prometheus数据源?

How to add prometheus data source for grafana with helm?

我尝试了很多资源,例如 http://prometheus-server.default:9090,但我收到了 HTTP Error Bad Gateway

只需使用http://localhost:9090 no need to use http://prometheus-server.default:9090,如果你的promitheus在其他服务器上使用ip或domain然后

找到。

helm prometheus package for grafana提供的服务器HTTP URL是: http://prometheus-server.