简体   繁体   English

如何使用默认的 istio beta 功能在 GKE 中安装带有 prometheus 的 Kiali Dashboard?

[英]How to Install Kiali Dashboard with prometheus in place in GKE with default istio beta feature?

I have been trying to install Kiali on an Istio (beta) enabled GKE cluster , I am following the official documentation to install Kiali using this link but Prometheus is somehow damaged since GCP has changed the name of Prometheus from "Prometheus" to "promsd" and Kiali dashboard keeps on pointing to http://prometheus.istio-system.com:9090 instead of http://promsd.istio-system.com:9090 .我一直在尝试在启用 Istio(测试版)的 GKE 集群上安装 Kiali,我正在按照官方文档使用此链接安装 Kiali,但由于 GCP 已将 Prometheus 的名称从“Prometheus”更改为“promsd” ,Prometheus 以某种方式损坏并且 Kiali 仪表板继续指向http://prometheus.istio-system.com:9090而不是http://promsd.istio-system.com:9090 How should I fix this issue in a default ISTIO ENABLED GKE Cluster ?我应该如何在默认ISTIO ENABLED GKE 集群中解决这个问题?

You could check the kiali configmap in namespace istio-system (assuming you used the default namespace for istio installation).您可以检查命名空间 istio-system 中的 kiali configmap(假设您使用默认命名空间进行 istio 安装)。 There should be a prometheus tag below external services.外部服务下面应该有一个 prometheus 标签。 Change it and restart the kiali pod.更改它并重新启动 kiali pod。

Update 20200821 : our config map (Istio (v1.5.6) installed via istioctl)更新 20200821 :我们的配置 map(通过 istioctl 安装的 Istio (v1.5.6))

kind: ConfigMap
apiVersion: v1
metadata:
  name: kiali
  namespace: istio-system
  selfLink: /api/v1/namespaces/istio-system/configmaps/kiali
  uid: 660a2bfe-c71b-45ab-a438-ed61532dd8e3
  resourceVersion: '31024421'
  creationTimestamp: '2020-07-24T10:18:24Z'
  labels:
    app: kiali
    operator.istio.io/component: AddonComponents
    operator.istio.io/managed: Reconcile
    operator.istio.io/version: 1.5.6
    release: istio
  annotations:

data:
  config.yaml: |
    istio_component_namespaces:
      grafana: istio-system
      tracing: istio-system
      pilot: istio-system
      prometheus: istio-system
    istio_namespace: istio-system
    auth:
      strategy: login
    deployment:
      accessible_namespaces: ['**']
    login_token:
      signing_key: "xxxxxxxxxxxxxxxxxx"
    server:
      port: 20001
      web_root: /kiali
    external_services:
      istio:
        url_service_version: http://istio-pilot.istio-system:8080/version
      tracing:
        url: 
        in_cluster_url: http://tracing/jaeger
      grafana:
        url: 
        in_cluster_url: http://grafana:3000
      prometheus:
        url: http://prometheus.istio-system:9090

To make it work I had to edit ConfigMap called kiali inside of istio-system namespace.为了使它工作,我必须在istio-system命名空间内编辑名为kialiConfigMap I added this lines under the external_services section:我在external_services部分下添加了这一行:

prometheus:
  url: http://my-prometheus-kube-prometh-prometheus.default.svc.cluster.local:9090/

在此处输入图像描述

I had a similar error message (Not in GCP), and got resolved it by installing Prometheus:我有一条类似的错误消息(不在 GCP 中),并通过安装 Prometheus 解决了它:

$ kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.13/samples/addons/prometheus.yaml

replace the release-1.13 with your istio versionrelease-1.13替换为您的istio版本

https://istio.io/latest/docs/ops/integrations/prometheus/ https://istio.io/latest/docs/ops/integrations/prometheus/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 GKE 中安装 istio 时出错 = 服务器找不到请求的资源(发布 `gatewaies.networking.istio.io`) - Error install istio in GKE = the server could not find the requested resource (post `gatewaies.networking.istio.io`) 在 Stackdriver 和 Istio 上监控 GKE - Monitoring GKE on Stackdriver and Istio 如何为 GKE 上的应用程序处理 Prometheus 指标端点的身份验证? - How to handle authentication on Prometheus metrics endpoint for an application on GKE? prometheus-kube-stack:如何在 GCP GKE - v1.21.10-gke.2000 上禁用节点导出器和 Grafana - prometheus-kube-stack: How to disable node exporters & Grafana on GCP GKE - v1.21.10-gke.2000 如何在 AKS 上为生产工作负载安装 ISTIO? - How to install ISTIO on AKS for production workload? 调整 Kube.netes 集群大小时 Istio 仪表板失败 - Istio Dashboard failure on Resizing Kubernetes cluster Microk8s(在 GCE 实例上)和 GKE 集群之间的 Istio 多集群 - Istio Multicluster between Microk8s (on GCE instance) and GKE custer GKE 上的 Istio - Admission webhook 无法注入 sidecar-porxy - Istio on GKE - Admission webhook not working to inject sidecar-porxy 在 GCP 中,我可以查看 GKE Monitoring 仪表板。 如何为 Kube.netes 容器的 CPU 和 memory 利用率创建警报 - In GCP , I can able to view GKE Monitoring dashboard. How to create alerts for CPU and memory Utilization for Kubernetes Container 通过 firebase beta 安装的 iOS 应用程序可以使用多长时间 - How long an iOS app install via firebase beta can be used
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM