簡體   English   中英

如何配置 istio helm chart 以使用外部 kube-prometheus-stack?

[英]How to configure istio helm chart to use external kube-prometheus-stack?

我已經使用istio-system命名空間中的這個文檔使用base & istiod helm 圖表在 GKE 集群上部署了 istio 服務網格。

我已經使用kube-prometheus-stack helm chart 部署了 Prometheus、grafana 和 alert-manager。

這種工作負載的每個 pod 都運行良好; 我沒有看到任何錯誤。 不知何故,我在 Prometheus UI 中沒有得到任何與 istio 工作負載相關的指標。 因此,我在 kiali 儀表板中沒有看到任何網絡圖。

誰能幫我解決這個問題?

Istio 期望 Prometheus 通過使用 Kubernetes 注釋prometheus.io/scrapeprometheus.io/portprometheus.io/path來發現哪些 pod 暴露了指標。

Prometheus 社區已決定,這些注釋雖然很受歡迎,但在默認情況下無法啟用。 因此,kube-prometheus-stack helm chart 不會使用這些注釋發現 pod。

要讓您的 Prometheus 安裝來抓取您的 Istio 指標,您需要配置 Istio 以按照您的 Prometheus 安裝所期望的方式公開指標(您必須檢查 Prometheus 配置,我不知道它是做什么的默認)或添加一個 Prometheus 抓取作業,該作業將使用上述注釋進行發現。

此處提供有關如何將 Prometheus 與 Istio 集成的詳細信息,此處提供示例 Prometheus 配置文件。

需要在 kube-prometheus-stack helm chart values.yaml 中為 istio 添加額外的ScrapConfigs。

prometheus:
  prometheusSpec:
    additionalScrapeConfigs:
      - {{ add your scrap config for istio }} 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM