layout | comments | title | sitemap |
---|---|---|---|
tutorial |
true |
Data Prepper + Jaeger Tutorial and Demo |
false |
In this tutorial, you'll use Data Prepper with Jaeger to demonstrate the ability for OpenSearch and OpenSearch Dashboards to capture and visualize trace data.
Launch OpenSearch Dashboards with Docker Compose [todo] {: .gitpod-hidden }
🛑 Please wait while OpenSearch Dashboards is loading. This may take a few moments. {: .gitpod-visible.gitpod-dashboards-ready-hidden }
✅ OpenSearch Dashboards is ready, you can proceed to the next step. {: .gitpod-visible.gitpod-dashboards-ready-visible }
This tutorial will use three browser windows. One for this tutorial content, another for OpenSearch Dashboards, and a third for the Jaeger Hot R.O.D. demo.
Point the second browser window at the following URL to launch OpenSearch Dashboards:
🛑 OpenSearch Dashboards is still loading, URLs will be visible once it is complete. {: .gitpod-visible.gitpod-dashboards-ready-hidden }
http://localhost:5601/
{: .gitpod-hidden }
Now, point the third browser window at the following URL to launch the Jaeger Hot R.O.D. demo:
🛑 OpenSearch Dashboards is still loading, URLs will be visible once it is complete. {: .gitpod-visible.gitpod-dashboards-ready-hidden }
http://localhost:8080/
{: .gitpod-hidden }
You should have three windows open like this:
At the login screen, use the following credentials:
Username: admin
Password: admin
Click “Log In”
Next, you’ll be presented with the Welcome page. You should click “Explore on my own” since the demo is only using data from the Hot Rod demo.
Now you’ll see the tenant selection window. In this tutorial, tenants will not be used, so just select “Global” then click “Confirm”
On the home screen, click the menu button in the upper left to reveal the menu along the left side. Click “Trace Analytics” under the heading “OpenSearch Plugins.”
Switch to the window that is running the Jaeger Hot R.O.D. demo.
Click several times on the customer buttons - even click rapidly. This application will simulate a microservice architecture and will generate trace data that is being read by Data Prepper and stored in OpenSearch.
Switch back to OpenSearch Dashboards.
You’ll see the panels have been populated with some data based on your clicks (if not, click the "Refresh" button on the right). On the top, you have a listing of latency by trace groups, then below you have the service map, trace error rate and trace over time charts. Feel free to explore these panels,
Now, view the traces of any trace group by clicking on the number of traces in the right most column of the “Latency by trace group” panel.
This brings you to the traces page where you can click on individual trace IDs. Click on any trace ID from the left most column.
This shows the detail for that individual trace. Make sure and look at both the “Time spent by service” bar chart and the “Span” chart to see how this trace moved through the architecture.
Go back to the main Trace Analytics panel by selecting “Trace Analytics” in the upper left next to the menu button. Then select “Services” from the left hand menu. Here you can inspect individual services and their performance. Make sure to take a look at the service map and it’s options as well as the span table at the bottom of the page.
In this tutorial, you logged into OpenSearch Dashboards, started an application that generated traces and started Data Prepper to read and store those traces and saw how OpenSearch Dashboards presents the trace data for your analysis.
From here you can continue to explore the interface of OpenSearch Dashboards, read the documentation for trace analytics (https://opensearch.org/docs/latest/monitoring-plugins/trace/index/
) or Data Prepper (https://opensearch.org/docs/latest/monitoring-plugins/trace/data-prepper/
).