如何将Istio与Prometheus整合在一起?

问题描述 投票:0回答:1

我需要做一个使用Istio+Prometheus收集k8s应用指标的POC。我的Prometheus运行在一个虚拟机上。我不想在kubernetes中以容器的形式运行Prometheus。谁能帮助我获得正确的文档?或者建议我如何在不将prometheus作为k8s中的pod运行的情况下做到这一点?

kubernetes prometheus metrics istio prometheus-operator
1个回答
2
投票

你可以更新 配置图掌舵 和istio适配器将照顾其他东西。

你可以在这里找到更多的细节 github问题


你看看这个 例子.

您可以将您自己的 Prometheus 带到 Istio,只需三个快速步骤。

  • 首先,更新你的Prometheus配置。Prometheus依赖于scrape配置模型,其中目标代表度量端点,由Prometheus服务器摄取。
  • 第二,更新你的Prometheus部署,将Istio的证书挂载到Prometheus中。这允许 Prometheus 在启用相互 TLS 时刮取 Istio 工作负载。要做到这一点,将 istio.default secret 挂载到你的 Prometheus 部署 YAML 中。
  • 最后,更新Istio的配置,使用自定义的Prometheus地址。
© www.soinside.com 2019 - 2024. All rights reserved.