Istio-集成遥测插件kiali、jaeger、prometheus

警告
本文最后更新于 2021-09-27 16:41,文中内容可能已过时。

部署jaeger

1.安装

1
k apply -f https://raw.githubusercontent.com/istio/istio/release-1.9/samples/addons/jaeger.yaml

部署kiali

1.安装

1
k apply -f https://raw.githubusercontent.com/istio/istio/release-1.9/samples/addons/kiali.yaml

由于部署顺序问题,可能会导致创建失败,再运行一次上面命令即可。

2.检查部署状态

1
k rollout status deployment/kiali -n istio-system

3.接入prometheus、grafana、jaeger 修改configmap

1
k edit -n istio-system cm kiali

内容如下:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
    external_services:
      custom_dashboards:
        enabled: true
      prometheus:
        url: http://prometheus-k8s.monitoring:9090
      grafana:
        enabled: true
        in_cluster_url: "http://grafana.monitoring:3000"
        url: "http://192.168.2.10:30462"
      tracing:
        enabled: true
        in_cluster_url: "http://tracing.istio-system/jaeger"
        url: "http://192.168.2.10:32344/jaeger"

4.重启pod

1
k rollout -n istio-system restart deployment kiali

grafana-istio仪表盘

1
2
3
4
5
6
Istio Control Plane Dashboard: 7645
Istio Mesh Dashboard: 7639
Istio Performance Dashboard: 12153
Istio Service Dashboard: 7636
Istio Wasa Extension Dashboard: 13277
Istio Workload Dashboard: 7630
请我喝杯水
SoulChild 微信号 微信号
SoulChild 微信打赏 微信打赏
0%