CLS supports self-service bill and usage query in the following steps:
Viewing Bills
Viewing log topic costs
1. Log in to the Billing Center and enter the Bill Details page. 2. In the All Products drop-down list, select CLS to view CLS bills.
By default, the bill data is arranged by cost in descending order, and you can visually view log topics that cost the most.
With the bill time range selector on the top, you can switch the statistics time of the bills.
3. In the row where the log topic you need to view, click View Bill Details.
4. The bill details page about the log topic is displayed.
You can view the following information on the page:
Cost and proportion of each billable item in the bill of the log topic: When doing cost optimization, you can choose different policies based on the proportions of the traffic cost and storage cost. If the traffic cost occupies a large proportion, you can reduce the amount of logs printed on the log collection client or filter out useless logs through data processing. If the storage cost occupies a large proportion, in addition to the above two methods, you can shorten the log storage duration.
Monthly cost trend in the bill of the log topic: The information can be used for year-on-year analysis to determine whether there is an abnormal sudden increase in the cost.
When CLS is shared by different business departments, the CLS costs need to be allocated among the business departments. In this case, you can use the cost allocation tag feature to associate the log topic fees with the business departments. Tag Key: for example, "service"
Tag Value: for example, "service A" and "service B"
2. Bind a log topic.
Binding on the CLS Console
Binding on the Tag Console
1. Log in to the CLS console, and enter the Log Topic page. 2. Select a log topic, and then click Edit Tag.
3. In the pop-up window, select the "service" tag you created, and click OK.
1. Log in to the tag console, and enter the Tag List page. 2. Select a corresponding tag, and click Bind Resources.
3. In the pop-up window, select Cloud Log Service for Service Type and Topic for Resource Type, select a corresponding log topic, and click OK.
4. Select the "service" tag you created, and click Set as Cost Allocation Tag.
5. View bill statistics of different businesses by the ''service'' cost allocation tag.
Viewing the Log Topic Cost of Each Business
Viewing the Total Cost of Each Business
1. Log in to the Billing Center, and enter the Bill Details page. 2. Select Cloud Log Service (CLS) from the All products drop-down list, and select the value of the "service" tag from the All Tags drop-down list.
1. Log in to the Billing Center, and enter the Bill Overview page. 2. Select the By Tag tab, and view the total cost.
Querying Usage
Viewing the usage of a single log topic
1. Log in to the CLS console, and enter the Log Topic page. 2. In the log topic list, click to view the usage of a log topic. Viewing the usage of multiple log topics
2. Select a region on the top, abd view the log topic usage in the region. (All the traffic data in the list is the traffic accumulated on the day.)
3. In the log topic list, click to view the usage of the log topics. Customizing Analysis of Log Topic Usage
1. Log in to the Tencent Cloud Observability Platform console, and enter the Dashboard List page. 2. Click Create Dashboard to create a dashboard for analyzing log topic usage.
3. After completing the configuration, click Save in the top-right corner to save the dashboard.
For more instructions about the dashboard feature, see Dashboard in the operation guide of Tencent Cloud Observability Platform.
문제 해결에 도움이 되었나요?