After importing trace data to TLS, you can visualize trace data in Grafana with simple configuration. This topic demonstrates how to view trace data and perform visual analysis via Grafana.
Background information
As an open-source visualization monitoring platform, Grafana offers features like data metrics monitoring and visual analysis. It is commonly used for large-scale metrics data and time series data visualization, especially in scenarios such as network architecture and application performance analysis. Grafana supports various data sources including Jaeger. After importing data successfully, you can configure comprehensive visualization dashboards for real-time monitoring and alerting of diverse data metrics.
TLS supports importing trace data to Grafana. With simple configuration, you can import trace data to Grafana via Jaeger data source. After importing data successfully, can configure visualization dashboards with query and analysis statements for real-time monitoring and alerting of data metrics.
Notice
When viewing trace data via Grafana, you need to transfer the data through Jaeger. In this case, you need to upload both trace data and the ServiceName to TLS. For field descriptions, see Trace data format. Prerequisites
- Supported Grafana version: 7.5.3 and later version. This topic uses Grafana 9.5.3 as an example to show how to view data via Grafana.
Steps
1 Add Jaeger data source
Add a Jaeger data source in Grafana. Then fill in the TLS endpoint and other relevant settings. How to do:
- Log in to Grafana as an administrator.
- On the left menu, select Administration > Data Sources.
- On the Data Sources tab, click Add data source.
- On the Add data source page, select Jaeger and click Select.
- Fill in the data source configuration.
-
2 View trace data
After configuring the Grafana monitoring dashboard for data visualization, you can view the relevant trace data for a specific trace ID at any time and analyze performance bottlenecks across business workflows. This topic shows how to view trace data by using official Demo HotROD of Jaeger as an example.
In the demo, HotROD is an application made up of multiple microservices. It offers a frontend interface to simulate user business interactions. In Grafana, you can view latency data for each part of the frontend interface call process to analyze its performance bottlenecks.
- Click Explore on the left navigation bar.
- Select the data source added in Step 1 at the top left of the page.
- Enter trace in the xcol(time) text box.
- Click Run query in the upper-right corner of the page.
- In trace view section, you can review latency data of call process for specified interface to identify performance bottlenecks.
- The following diagram shows that the mysql module has relatively high interface call latency. To improve performance, consider optimizing the module to increase interface response speed.
-