COS can monitor your stored data. The COS data monitoring window displays data regarding request quantity, traffic, return code, data retrieval, etc. You can also query the details and trends of data in different storage classes according to different periods. The following describes how to view the monitoring data of a single bucket using a root account or sub-account.
Note:To view the summary of all data stored under your account, please go to Data Overview in the COS console.
Note:
- To query the number of objects in a folder, please see Viewing Folder Details.
- If versioning is enabled, multiple versions of an object are counted as separate objects.
Note:
- Under Details in the Current section, you can query monitoring data (including storage usage, number of objects, requests, traffic, return code, and data retrieval) of different periods, such as today, yesterday, last 7 days, last 30 days, or a custom period.
- In the This month section, you can view data for the month, including the daily average storage usage of each storage class and total traffic (accumulated public network traffic, accumulated CDN origin-pull traffic, and accumulated cross-region replication traffic).
- Storage and Number of Objects show only data after March 01, 2020. For more detailed data, please go to Billing Center, select a period, and export the data.
To query monitoring data with a sub-account via the console, you need to first grant the sub-account permission to query the monitoring data.
You can grant such permission by using a Policy Template or Custom Access Policy.
QcloudMonitorFullAccess
policy in the policy list and click OK to attach it to the sub-account. Then the sub-account should be able to access monitoring reports.Note:This policy template grants full permission for cloud monitoring to a sub-account. To better ensure the security of your account, you can customize an access policy to grant only read permission to your sub-accounts.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"monitor:GetMonitorData"
],
"resource": "*"
}
]
}
Edit the policy content in the input box:
Was this page helpful?