OpenShift 4 之Istio-Tutorial (3) 监控微服务运行

本系列OpenShift Servic Mesh教程是基于Red Hat官方公开发行的《Introducing Istio Service Mesh for Micoservices》出版物,我将所有操作在OpenShift 4.2.x环境中进行了验证。喜欢读英文或者需要了解更多和场景相关知识点的小伙伴可以通过上面的链接下载该书慢慢阅读。

本章节我们在OpenShift 4的Serivce Mesh环境中集成的Kiali,Jaeger中查看微服务的运行情况。

  1. 运行测试脚本,连续访问customer微服务。
$ export INGRESS_GATEWAY=$(oc get route -n istio-system istio-ingressgateway -o 'jsonpath={.spec.host}')
$ ./scripts/run.sh $INGRESS_GATEWAY/customer
  1. 在浏览器打开Kiali控制台,其中Kiali控制台访问地址可以通过以下方式获得。
$ oc get route kiali -n istio-system -o jsonpath={.spec.host}
kiali-istio-system.apps-crc.testing
  1. Kiali控制台中进入tutorial项目,并且按照下图设置Graph属性。
    在这里插入图片描述
  2. 此时可以在Kiali中看到请求的调用路径,先进入customer,然后进入perference,最后进入recommendation。另外所有微服务的监控数据发到Jaeger-Collector上。在这里插入图片描述
  3. 停止./scripts/run.sh的运行。
发布了54 篇原创文章 · 获赞 0 · 访问量 1019

猜你喜欢

转载自blog.csdn.net/weixin_43902588/article/details/103975722
今日推荐