From bc9c94d05f82d896e097eb66b55ea7c8a197e197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=93=E9=9B=B7=E4=B8=8D=E6=80=95?= Date: Fri, 4 Jan 2019 11:19:42 +0800 Subject: [PATCH] zh: content_zh/docs/tasks/telemetry/distributed-tracing/jaeger/index.md (#3027) * jaeger * rebase upstream master --- .../distributed-tracing/jaeger/index.md | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 content_zh/docs/tasks/telemetry/distributed-tracing/jaeger/index.md diff --git a/content_zh/docs/tasks/telemetry/distributed-tracing/jaeger/index.md b/content_zh/docs/tasks/telemetry/distributed-tracing/jaeger/index.md new file mode 100644 index 0000000000..6463668c0a --- /dev/null +++ b/content_zh/docs/tasks/telemetry/distributed-tracing/jaeger/index.md @@ -0,0 +1,51 @@ +--- +title: Jaeger +description: 了解如何配置代理以向 Jaeger 发送追踪请求。 +weight: 10 +keywords: [遥测,追踪,jaeger,span,端口转发] +--- + +要了解 Istio 如何处理追踪,请查看这个任务的[概述](../overview/)。 + +## 开始之前 + +1. 按照[安装指南](/zh/docs/setup/)中的说明安装 Istio。 + + 使用 Helm chart 进行安装时,设置 `--set tracing.enabled=true` 选项以启用追踪。 + +1. 部署 [Bookinfo](/zh/docs/examples/bookinfo/#部署应用) 示例应用程序。 + +## 访问仪表盘 + +1. 如要配置到追踪仪表盘的访问,请使用端口转发: + + {{< text bash >}} + $ kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=istio-ingressgateway -o jsonpath='{.items[0].metadata.name}') 15032:15032 & + {{< /text >}} + + 打开浏览器访问 [http://localhost:15032](http://localhost:15032)。 + +1. 如要使用 Kubernetes ingress,请指定 Helm chart 选项 `--set tracing.ingress.enabled=true`。 + +## 使用 Bookinfo 示例产生追踪 + +1. 当 Bookinfo 应用程序启动并运行时,访问 `http://$GATEWAY_URL/productpage` 一次或多次以生成追踪信息。 + +1. 从仪表盘左边面板的 **Service** 下拉列表中选择 `productpage` 并点击 **Find Traces**: + {{< image link="./istio-tracing-list.png" caption="追踪仪表盘" >}} + +1. 点击位于最上面的最近一次追踪,查看对应最近一次访问 `/productpage` 的详细信息: + + {{< image link="./istio-tracing-details.png" caption="详细追踪视图" >}} + +1. 追踪信息由一组 span 组成,每个 span 对应一个 Bookinfo service。这些 service 在执行 `/productpage` 请求时被调用,或是 Istio 内部组件,例如:`istio-ingressgateway`、`istio-mixer`、`istio-policy` + +## 清理 + +1. 停止任何可能还在运行的 `kubectl port-forward` 进程: + + {{< text bash >}} + $ killall kubectl + {{< /text >}} + +1. 如果您没有计划探索任何接下来的任务,请参考 [Bookinfo 清理](/zh/docs/examples/bookinfo/#清理)中的说明,关闭整个应用程序。