COS allows you to monitor your stored data. The COS data monitoring window displays information regarding request quantity, traffic, return code, data retrieval, etc. You can also query the details and trends of data in different storage classes for different time periods. The following describes how to view the monitoring data of a single bucket with a root account or sub-account.
Note:To view the summary of all data stored under your account, go to Data Monitoring in the COS console.
Note:
- To query the number of objects in a folder, 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 time periods, such as today, yesterday, last 7 days, last 30 days, or a custom time period.
- In the This month section, you can view data for the month, including the daily average storage usage of each storage class as well as total traffic (total public network traffic, total CDN origin-pull traffic, and total cross-region replication traffic).
- Storage and Number of Objects show only data after March 1, 2020. For more detailed data, go to Billing Center, select a time period, and export the data.
To query monitoring data with a sub-account in the console, you need to first grant the sub-account relevant permissions.
You can grant such permissions by using a policy template or custom access policy.
Log in to the CAM console as the root account and select Users > User List to enter the user list page.
Find the target sub-account and click Authorize in the Operation column on the right.
Search for and select the QcloudMonitorFullAccess
policy in the pop-up window and click OK to associate it with the sub-account. Then, the sub-account can access monitoring reports.
Note:This policy template grants the sub-account the full access to CM. To protect the security of your account, you can customize an access policy to grant only read permissions to the sub-account.
Log in to the CAM console as the root account.
On the left sidebar, click Policies > Create Custom Policy > Create by Policy Syntax.
Select Blank Template and click Next.
Copy and paste the following policy syntax into the Policy Content input box.
You can rename the policy as needed.
Policy syntax:
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"monitor:GetMonitorData"
],
"resource": "*"
}
]
}
4. Click OK.
After the policy is created successfully, you can associate it with the sub-account as instructed in Authorizing by policy template.
Apakah halaman ini membantu?