- Documentation
Torch Log Service
User Guide
Query and analysis
Query and analyze metric topic
Query and analysis
Query and analyze metric topic
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.
- A project and metric topic have been created. For details, see Metric topic.
- Metric data has been collected.
- Select the region where TLS is located from the top navigation bar.
- On the left navigation bar, select Common functions > Query and analysis.
- On the Query and analysis page, click Metric topic in the left list, and select the specified project and metric topic.
- 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.
- Query and analyze metric data using the following methods:
- 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
- Click Metric query. The system displays the available metrics for query.
- Click the metric name, select tags and tag values, and the system will automatically create a query statement.
-
- 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.
- Click Custom analysis to access the custom analysis page. Use standard SQL syntax or combined SQL + PromQL syntax to query and analyze data.
After completing query and analysis, you can configure various charts to view results, or add them to dashboards, alarms, and other operations.
-
Last updated: 2026.02.13 11:02:07