我需要使用 Istio + Prometheus 收集 k8s 应用程序指标进行 POC。
我的普罗米修斯在虚拟机上运行。我不想将 Prometheus 作为 kubernetes 中的容器运行。
任何人都可以帮助我获得正确的文档吗?
或者建议我如何在不将 prometheus 作为 k8s 中的 pod 运行的情况下执行此操作?
最佳答案
您可以更新 config-map在 helm Istio 适配器将处理其他事情。
您可以在此处找到更多详细信息github issue
看看这个 example .
You can bring your own Prometheus to Istio, with three quick steps.
- First, update your Prometheus configuration. Prometheus relies on a scrape config model, where targets represent /metrics endpoints, ingested by the Prometheus server.
- Second, update your Prometheus deployment to mount Istio's certificates into Prometheus. This allows Prometheus to scrape Istio workloads when mutual TLS is enabled. To do this, mount in the istio.default secret into your Prometheus deployment YAML
- Lastly, update Istio's configuration to use a custom Prometheus address.
关于kubernetes - 如何将 Istio 与 Prometheus 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61714473/