- Documentation
Torch Log Service
User Guide
Resource management
Metric topic
Resource management
Metric topic
Metric topic
You can create multiple log topics and metric topics within a single project in TLS. The metric topic is a unit for collecting, storing, and querying time-series data in TLS.
This topic describes common management operations for metric topics, including creating, modifying, and deleting metric topics.
Notice
Metric topic is now in closed beta. If you have business needs, contact your account manager for allowlist access.
Metric topics in TLS are used to collect and analyze time-series data. Before using metric topics, you need to know the following concepts:
- A project has been created. For detailed steps, see Log project.
- You can create up to 100 metric topics in each region.
- If the data exceeds read/write capability of the shard, data write may fail. To avoid data write failure, we recommend that you enable automatic shard splitting.
- TLS provides unified access and metric queries, and depends on limits of the managed Prometheus workspace. For details, see Managed Prometheus usage limits.
- On the top navigation bar, select the region where the log service is located.
- On the left navigation pane, select Resource management > Project.
- On the Project page, locate the specified project and click the project name.
- In the Topic area, click Create metrics topic.
- In Create metrics topic dialog box, configure the following settings.
- Enter the basic configuration.
- Enter the split configuration.
- Enter the storage time configuration.
- Configure the log storage time. Logs that store longer than the specified storage time will be deleted automatically. Support configuration for 15 days, 30 days, 90 days, 180 days, or 1 year.
You can modify the name, storage duration, and other settings. You can also update the topic name and description directly from the metric topic list. TLS automatically assigns an ID to each metric topic. This ID cannot be changed.
Notice
- Modifying the number of shards for metric topics is not currently supported.
- Adjustment between 15 days and 30 days of storage duration is not supported.
- On the top navigation bar, select the region where TLS is located.
- On the left navigation pane, select Resource management > Project.
- Click the specified project name.
- In the Metric topic section, locate the metric topic and click Edit in the Actions column.
- You can also edit the metric topic name, description, and other details directly in the metric topic list.
- Reset the relevant configurations for the metric topic.
- You can modify the metric topic name, storage period, auto split shards, and maximum number of splits.
- Before deleting a metric topic, make sure all related LogCollector collection configurations are removed. For steps to delete a collection configuration, refer to Delete collection configuration.
- After you delete the metric topic, all associated metric data and configuration information will be permanently deleted and cannot be recovered. Proceed with caution.
- When you delete a metric topic, the associated managed Prometheus workspace will also be automatically deleted.
- On the top navigation bar, select the region where TLS is located.
- On the left navigation pane, select Resource management > Project.
- Click the specified project name.
- In the Topic section, locate the specified topic and select ... in the Actions column. Then click Delete.
- In the pop-up dialog, confirm the information of the topic to be deleted, enter the topic name, and click Delete.
- The dialog displays resources associated with the topic. If there are linked resources, you can click To delete to remove the relevant resources first.
Last updated: 2025.12.24 17:53:10