Querying Monitoring Reports

Last updated: 2019-08-20 16:42:29

PDF

Overview

COS is capable of monitoring stored data and displaying details and trends of various metrics in the monitor window, including basic information such as requests, traffic, and data reads as well as return code statistics.

Directions

Querying with a Root Account

  1. Log in to the COS Console and click Bucket List in the left sidebar to enter the bucket list page.
  2. Find the bucket for which you want to view the statistics and click in the Monitor column as shown below:
  3. Enter the monitoring pager as shown below:
  • In the Current Data section, you can switch between current data and month-to-date data, including storage capacity, number of read and write requests, traffic, return codes, and data reads. The time granularities available include today, yesterday, past 7 days, and past 30 days.
  • In the Month-to-date Data section, you can view the daily average storage capacity in each storage class and total traffic (accumulated public network traffic, accumulated CDN origin-pull traffic, and accumulated cross-region replication traffic) in the current month.

Querying with a Sub-account

You need to first grant a sub-account permission to query monitoring reports before it can do so by logging in to the console. You can grant the permission using a policy template or a custom access policy.

Configuring Permission to Access Monitoring Reports for a Sub-account

Configuring by Policy Template

  1. Log in to the CAM Console using the root account, click Users in the left sidebar, and click a created sub-account.
  2. Search for the QcloudMonitorFullAccess policy in the policy list and click OK to add it to the sub-account so that the sub-account can access monitoring reports.
    Aaron Swartz

    This policy template will grant full access to Cloud Monitor. If you want to protect account security, you can customize an access policy to grant the sub-account read permission only.

Configuring by Custom Access Policy

  1. Log in to the CAM Console using the root account and select Policies > Create a Custom Policy.

  2. Click Create by Policy Syntax.

  3. Select the blank empty template to create the policy.

  4. Copy and paste the following policy syntax into the Edit Policy Content input box in the blank template. You can rename the policy as needed.
    Policy syntax:

    {
     "version": "2.0",
     "statement": [
         {
             "effect": "allow",
             "action": [
                 "monitor:GetMonitorData"
             ],
             "resource": "*"
         }
     ]
    }

    Edit the policy content in the input box:
    Aaron Swartz

  5. Click Create a Policy. After the policy is created successfully, you can associate it with the sub-account for authorization. For directions, see Configuring by Policy Template.