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

Torch Log Service

Copy page
Download PDF
Query and analysis
Query and analyze metric topic
Copy page
Download PDF
Query and analyze metric topic
After successfully collecting metric data, you can perform real-time query and analysis of the metrics in the TLS console using query and analysis statements. This topic introduces how to query metrics.​
Notice​
Metric topic is now in closed beta. If you have business needs, contact your account manager for allowlist access.​
Prerequisites​
  • A project and metric topic have been created. For details, see Metric topic.​
  • Metric data has been collected.​
Steps​
  1. Log in to TLS console.​
  1. Select the region where TLS is located from the top navigation bar.​
  1. On the left navigation bar, select Common functions > Query and analysis.​
  1. On the Query and analysis page, click Metric topic in the left list, and select the specified project and metric topic.​
  1. On the query and analysis page for the specified metric topic, set the time range.​
  • By default, the time range is 5 minutes. You can also customize the time range for query. If the storage time of data does not fall within the specified query time range, the data will not be returned in query results.​
  1. Query and analyze metric data using the following methods:​
  • PromQL analysis method​
  • Enter the query and analysis page. The PromQL analysis method is selected by default. Use standard PromQL syntax for query and analysis. For syntax details, see PromQL Syntax Reference.​
  • Select metrics for query​
  1. Click Metric query. The system displays the available metrics for query.​
  1. Click the metric name, select tags and tag values, and the system will automatically create a query statement.​
  • ​​​
  1. Click Add and run analysis, and the system will automatically execute the query statement.​
  • ​​​
  • Enter PromQL statements to query​
  • Directly enter PromQL statements. You can add up to 20 statements. Select query conditions and click Run query and analysis.​
  • Custom analysis method​
  • Click Custom analysis to access the custom analysis page. Use standard SQL syntax or combined SQL + PromQL syntax to query and analyze data.​
Next steps​
After completing query and analysis, you can configure various charts to view results, or add them to dashboards, alarms, and other operations.​
  • ​​​
​
Actions​
Description​
Configure chart​
Click Chart settings to set up tables, line charts, or other types of charts and view the analysis results. For chart types, see Overview of query and analysis charts.​
Add to dashboard​
Click Add to dashboard to add the query and analysis results to an existing dashboard or create a new one. For dashboard details, see Add charts to dashboard.​
Create alarm​
Click Create alarm policy to use the query and analysis results as a monitoring task and create an alarm policy. For alarm policy details, see Create alarm policy.​
​
​
​
Last updated: 2026.02.13 11:02:07