簡體   English   中英

Kiali 未與 VictoriaMetricsHello 合作

[英]Kiali is not working with VictoriaMetricsHello

是否有人能夠使用 VictoriaMetrics 而不是 Prometheus 使 kiali 可視化網格?

當我使用 istio 示例中的prometheuskiali設置時,Mesh Visualization 就可以工作了。

但是,當我用 Victoria Metrics(代理、選擇、插入、存儲)替換 prometheus 時,kiali 只會顯示空圖。

我檢查了 Prometheus 和 Victoria Metrics 是否具有相同的istio_requests_total指標。

但是,當我在 spec.external_services.prometheus.url 中使用 Victoria Metrics 選擇 URL 時,圖表為空。

apiVersion: kiali.io/v1alpha1
kind: Kiali
metadata:
  name: kiali
  namespace: istio-system
spec:
  auth:
    strategy: anonymous
  external_services:
    istio:
      config_map_name: istio-1-14
      url_service_version: http://istiod-1-14:15014/version
    prometheus:
      url: http://vmselect-example-vmcluster-persistent.poc.svc.cluster.local:8481/select/0/prometheus/

在日志中,我看到兩個與 vm-select 沒有相應端點的事實有關的錯誤

2022-07-15T19:25:13Z ERR Failed to fetch Prometheus configuration:     bad_response: readObjectStart: expect { or n, but found r, error found      in #1 byte of ...|remoteAddr:|..., bigger context ...|remoteAddr:      "10.4.34.83:57468"; requestURI: /select|... 
2022-07-15T19:25:13Z ERR Failed to fetch Prometheus flags: bad_response: readObjectStart:     expect { or n, but found r, error found in #1 byte of     ...|remoteAddr:|..., bigger context ...|remoteAddr:     "10.4.34.83:57468"; requestURI: /select|...

和多個警告

 2022-07-15T19:35:28Z WRN Skipping      {destination_canonical_revision="v1",     destination_canonical_service="microservice",      destination_cluster="Kubernetes",     destination_service="microservice.poc.svc.cluster.local",      destination_service_name="microservice",     destination_service_namespace="poc",     destination_workload="microservice",     destination_workload_namespace="poc", request_protocol="http",     response_code="200", response_flags="-", source_canonical_revision="latest",     source_canonical_service="istio-ingressgateway-internal",  source_cluster="Kubernetes"}, missing expected TS labels

這是我的 VMPodScrape,我希望它會從所有 pod 中獲取所有指標

apiVersion: operator.victoriametrics.com/v1beta1
kind: VMPodScrape
metadata:
  name: all-scrape
  namespace: poc
spec:
  podMetricsEndpoints:
    - scheme: http
      path: /stats/prometheus
      targetPort: 15090
  selector: {}
  namespaceSelector:
    any: true

錯誤消息看起來並不重要,萬一出現錯誤 kiali 應該使用默認值。 據我了解,它嘗試根據 prometheus 配置文件和標志來識別抓取間隔和保留。

我認為您在重新標記配置時遇到問題,它會刪除 kiali 所需的標簽。

有按指標名稱標注的文檔: https ://kiali.io/docs/faq/general/#which-istio-metrics-and-attributes-are-required-by-kiali

我建議在 VMAgent 上檢查抓取配置。 可能重新標記規則已過時。

暫無
暫無

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

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