2.3 KiB
| title | description | weight | keywords | |||||
|---|---|---|---|---|---|---|---|---|
| Jaeger | Learn how to configure the proxies to send tracing requests to Jaeger. | 10 |
|
To learn how Istio handles tracing, visit this task's overview.
Before you begin
-
To set up Istio, follow the instructions in the Installation guide.
Use the Helm chart with tracing enabled to set the
--set tracing.enabled=trueoption. -
Deploy the Bookinfo sample application.
Accessing the dashboard
-
To setup access to the tracing dashboard, use port forwarding:
{{< 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 >}}Open your browser to http://localhost:15032.
-
To use a Kubernetes ingress, specify the Helm chart option
--set tracing.ingress.enabled=true.
Generating traces using the Bookinfo sample
-
When the Bookinfo application is up and running, access
http://$GATEWAY_URL/productpageone or more times to generate trace information. -
From the left-hand pane of the dashboard, select
productpagefrom the Service drop-down list and click Find Traces:{{< image width="100%" ratio="52.68%" link="./istio-tracing-list.png" caption="Tracing Dashboard"
}}
-
Click on the most recent trace at the top to see the details corresponding to the latest request to the
/productpage:{{< image width="100%" ratio="36.32%" link="./istio-tracing-details.png" caption="Detailed Trace View"
}}
-
The trace is comprised of a set of spans, where each span corresponds to a Bookinfo service, invoked during the execution of a
/productpagerequest, or internal Istio component, for example:istio-ingressgateway,istio-mixer,istio-policy.
Cleanup
-
Remove any
kubectl port-forwardprocesses that may still be running:{{< text bash >}} $ killall kubectl {{< /text >}}
-
If you are not planning to explore any follow-on tasks, refer to the Bookinfo cleanup instructions to shutdown the application.