tencent cloud

Cloud Log Service

Release Notes and Announcements
Release Notes
Announcements
User Guide
Product Introduction
Overview
Features
Available Regions
Limits
Concepts
Service Regions and Service Providers
Purchase Guide
Billing Overview
Product Pricing
Pay-as-You-Go
Billing
Cleaning up CLS resources
Cost Optimization
FAQs
Getting Started
Getting Started in 1 Minute
Getting Started Guide
Quickly Trying out CLS with Demo
Operation Guide
Resource Management
Permission Management
Log Collection
Metric Collection
Log Storage
Metric Storage
Search and Analysis (Log Topic)
Search and Analysis (Metric Topic)
Dashboard
Data Processing documents
Shipping and Consumption
Monitoring Alarm
Cloud Insight
Independent DataSight console
Historical Documentation
Practical Tutorial
Log Collection
Search and Analysis
Dashboard
Monitoring Alarm
Shipping and Consumption
Cost Optimization
Developer Guide
Embedding CLS Console
CLS Connection to Grafana
API Documentation
History
Introduction
API Category
Making API Requests
Topic Management APIs
Log Set Management APIs
Index APIs
Topic Partition APIs
Machine Group APIs
Collection Configuration APIs
Log APIs
Metric APIs
Alarm Policy APIs
Data Processing APIs
Kafka Protocol Consumption APIs
CKafka Shipping Task APIs
Kafka Data Subscription APIs
COS Shipping Task APIs
SCF Delivery Task APIs
Scheduled SQL Analysis APIs
COS Data Import Task APIs
Data Types
Error Codes
FAQs
Health Check
Collection
Log Search
Others
CLS Service Level Agreement
CLS Policy
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

Metric topic

PDF
Focus Mode
Font Size
Last updated: 2024-09-20 17:48:27

Overview

CLS manages its stored metric data by using Metric Topics and Logsets. A Metric Topic is the basic unit for collecting, storing, and querying metric data, while a Logset categorizes metric topics to help users manage them more easily. A Logset can contain both metric topics and log topics simultaneously. This document describes how to manage metric topics.
Note:
The metric topics service ended its public beta on July 1, 2024, and is now officially a paid service. For more details, see the Billing Overview.

Prerequisites

You have logged in to the CLS Console.

Directions

Creating a Metric Topic

1. In the left sidebar, click Metric Topic.
2. On the Metric Topic management page, select the region for the Metric Topic, and click Create Metric topic.
3. In the pop-up window, fill in the following information:
Metric topic name: for example, nginx_metric.
Metric topicID: a random ID is generated by default; you can also define an ID. Only lowercase letters, numbers, and - are supported, and it cannot start or end with -. Length 3 to 40 characters.
Metric save policy:
Retention Time: It is 30 days by default. You can customize the data retention period. Data will be automatically deleted after expiration, or it can be set to be retained permanently.
Logset Operation:
Select an existing logset: select a target logset from the Logset dropdown list.
Create logset: Enter the name of the new logset, and set a tag for the current logset to be created so that resources can be managed by category from different dimensions.
Metric topic tag: set a tag for the newly created Metric Topic to facilitate resource classification management from different dimensions.
Advanced Settings:
Metric topic description: description information to understand the purpose of the Metric Topic in the future.
Topic partition:
Initial partitions: the number of partitions automatically created when the topic is created, supporting 1~10, default is 1. For more information on topic partitions, see Topic Partition.
Auto-split: whether to automatically add partitions based on the topic's write traffic size, enabled by default.
Maximum partitions: When auto split is enabled, the maximum number of partitions is 50 by default.
4. Click OK to create the metric topic. After the metric topic is successfully added, you can go to the metric topic management page, click the created metric topic name/ID to view detailed information.
Note:
Once a metric topic is created, the associated region and logset cannot be modified.

Editing a Metric Topic

1. In the left sidebar, click Metric Topic.
2. In the metric topic management page, find the metric topic name/ID you want to edit and click Edit.
3. In the pop-up window, modify the basic information of the metric topic.
4. Click OK to update the metric topic information.

Deleting a Metric Topic

1. In the left sidebar, click Metric Topic.
2. In the metric topic management page, find the metric topic name/ID you want to delete and click Delete.
3. In the pop-up window, click Next > Delete to delete the current metric topic.
Note:
Once a metric topic is deleted, the associated configurations and data cannot be recovered. Operate with caution.


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback