You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Tracing service
View trace data via Grafana
Copy page
Download PDF
View trace data via Grafana
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​
  • Trace data is imported successfully. For steps, see Access methods.​
  • 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:​
  1. Log in to Grafana as an administrator.​
  1. On the left menu, select Administration > Data Sources.​
  1. On the Data Sources tab, click Add data source.​
  1. On the Add data source page, select Jaeger and click Select.​
  1. Fill in the data source configuration.​
  • Required parameters:​
  • ​
    Configuration​
    Description​
    URL​
    The access address for trace storage. Format: https://service-address:port number. For example, https://tls-cn-beijing.volces.com:16686. Note that:​
    • Service address: the service address for TLS in the current region. Select the correct service entry point based on region and network type. For details, see Service address.​
    • Port: Fixed at 16686.​
    Tip​
    If you use a private network service address, ensure that the environment hosting the Grafana project supports accessing TLS via VolcanoEngine private network.​
    Basic auth​
    Basic authentication. Enable Basic auth and fill in User and Password in Basic auth Detail.​
    User​
    User name Configure the trace instance ID here. For viewing method, see View trace instance information.​
    Password​
    User password. Secret key should be set as the VolcanoEngine account. Format: ${access-key-id}#${access-key-secret}, where:​
    • ${access-key-id} should be replaced with the AccessKey ID of the VolcanoEngine account key.​
    • ${access-key-secret} should be replaced with the AccessKey Secret of the VolcanoEngine account key.​
    Tip​
    We recommend using an IAM user's secret key. The IAM user's must have permissions for Action SearchLogs and DescribeTraceInstances. For more details, see Authorizable operation.​
    ​
  • ​​​
  1. Click Save & Test.​
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.​
  1. Click Explore on the left navigation bar.​
  1. Select the data source added in Step 1 at the top left of the page.​
  1. Enter trace in the xcol(time) text box.​
  1. Click Run query in the upper-right corner of the page.​
  1. 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.​
  • ​​​
​
Last updated: 2026.04.14 15:49:38