tencent cloud

Monitoring and Alarms
Last updated: 2025-03-03 19:53:58
Monitoring and Alarms
Last updated: 2025-03-03 19:53:58

Overview

COS statistics such as read and write requests and traffic are collected and displayed based on Cloud Monitor (CM). You can view detailed monitoring data of COS in the COS or CM console.
Note:
This document describes how to get statistics in the COS console. You can call CM APIs to get more detailed data. For more information, see the CM documentation.
Currently, all the metrics reported to CM support all COS regions. For more information, see Regions and Access Endpoints.

Basic Features

CM provides the following modules for COS to implement monitoring and alarming.
Module
Capability
Main Feature
Monitoring overview
Displays the current status of the product
Provides general overview, alarm overview, and overall monitoring information
Alarm management
Supports alarm management and configuration
Supports creating new COS alarm policies, custom messages, and trigger templates
Monitoring platform
Monitors traffic and displays data of user-defined monitoring metrics
Displays your overall bandwidth information and allows you to customize monitoring metrics and data to be reported
Cloud product monitoring
Displays the COS bucket monitoring view
Allows you to query the current monitoring views and data such as read/write requests and traffic for each bucket

Use Cases

Daily management: You can log in to the CM console to view the running status of COS in real time.
Troubleshooting: You can receive alarm notifications when the data of a monitoring metric reaches the threshold. It allows you to quickly notify the exceptions, find out the causes, and fix the issues.

Setting and Querying via Console

You can create an alarm policy for COS in the CM console. If the data of a monitoring metric reaches the specified threshold, you will receive an alarm notification. For detailed directions, see Setting Alarm Policies.
You can go to Cloud Product Monitoring > Cloud Object Storage to view the COS monitoring data (including the monitoring data of all buckets, health status, number of alarm policies, and more). Alternatively, you can go to the COS console to view the data. For detailed directions, see Viewing Statistics and Querying Monitoring Data.

Querying Monitoring Data via APIs

You can call the corresponding Cloud Product Monitoring APIs to view the COS monitoring data. The monitoring metrics are described below. For more information on monitoring APIs, see COS .

Monitoring Metrics

COS Monitoring Metrics

For more information on COS monitoring APIs, see COS .
Note:
COS uses a generic region. Therefore, select Guangzhou for Region when you pull COS monitoring metric data, regardless of where the bucket resides.
When pulling data by using API Explorer, select ap-guangzhou for the Region field.
When pulling data by using an SDK, enter "ap-guangzhou" for the Region field.
The statistical granularity (period) may vary by metric. You can call the DescribeBaseMetrics API to obtain the period supported by each metric.
For more information on 3xx, 4xx, and 5xx status codes, see Error Codes.

Dimensions and Parameters

Parameter
Dimension
Description
Format
&Instances.N.Dimensions.0.Name
appid
Dimension name of the root account APPID
Enter a string-type dimension name: appid
&Instances.N.Dimensions.0.Value
appid
Specific root account APPID
Enter a root account APPID, such as 1250000000
&Instances.N.Dimensions.1.Name
bucket
Dimension name of the bucket
Enter a string-type dimension name: bucket
&Instances.N.Dimensions.1.Value
bucket
Specific bucket name
Enter a specific bucket name, such as examplebucket-1250000000

Input Parameters

To query COS monitoring data, the values of the input parameters are as follows:
&Namespace=QCE/COS &Instances.N.Dimensions.0.Name=appid &Instances.N.Dimensions.0.Value=root account APPID &Instances.N.Dimensions.1.Name=bucket &Instances.N.Dimensions.1.Value=bucket name

Monitoring Description

Monitoring interval: CM supports multiple monitoring intervals, including real time, last 24 hours, last 7 days, and user-specified period, with time granularities of 1 minute, 5 minutes, 1 hour, and 1 day.
Data storage: 1-minute monitoring data can be stored for 15 days, 5-minute data for 31 days, 1-hour data for 93 days, and 1-day data for 186 days.
Alarm display: CM integrates the monitoring data of COS and displays the data in graphs. Alarm notifications can be sent to you according to the predefined alarm metrics of your product. In this way, you can stay informed of the overall running status.
Alarm settings: You can set the threshold for the monitoring metrics. When the monitoring data meets the alarm condition that is set, CM will send the alarm notifications to the specified users. For more information, see Alarm Overview and Setting Alarm Policies.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback