kubernetes - 如何将 Istio 与 Prometheus 集成

标签 kubernetes prometheus metrics istio prometheus-operator

我需要使用 Istio + Prometheus 收集 k8s 应用程序指标进行 POC。 我的普罗米修斯在虚拟机上运行。我不想将 Prometheus 作为 kubernetes 中的容器运行。
任何人都可以帮助我获得正确的文档吗? 或者建议我如何在不将 prometheus 作为 k8s 中的 pod 运行的情况下执行此操作?

最佳答案

您可以更新 config-maphelm 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/

相关文章:

deep-learning - Keras:使用 train_on_batch 处理批量数据时的测试、交叉验证和准确性

email - Prometheus 电子邮件警报以显示指标值

ssh - 在 kubernetes 中创建 ssh secrets key 文件

grafana - 我试图根据 Prometheus blackbox exporter 的成功响应来计算 Grafana 的正常运行时间

kubernetes - 无法删除kubernetes前景中的PVC

docker - Prometheus cAdvisor docker 监控

spring-boot - Springboot网关Prometheus采集海量数据

java - 从集群收集指标

尽管 externalTrafficPolicy 设置为本地,但 Kubernetes 提供了内部源 IP

docker - Kubernetes HPA为自定义指标获取了错误的当前值