Help Center/ Cloud Eye/ FAQs/ Troubleshooting/ API/ How Can I Query Monitoring Data of a Metric?
Updated on 2025-04-28 GMT+08:00

How Can I Query Monitoring Data of a Metric?

FAQ Before API Calling

  1. Issue 1

    Description

    How can I call the GET /V1.0/{project_id}/metric-data API?

    Solution

    For details, see Querying Monitoring Data of a Metric.

  1. Issue 2

    Description

    What are the domain names for calling this API in different regions?

    Solution

    For details, see Regions and Endpoints.

Troubleshooting Common 4XX Issues

  1. HTTP status code

    429

    Error code

    ces.0429

    Possible causes

    Cause 1: The API is throttled. For details, see Case 1.

    Solution

    If the API is throttled, contact O&M personnel to configure a new process policy immediately.

    Case 1: The API is throttled.

    View the CPU usage of the ECS whose ID is 6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d from 20:00:00 to 22:00:00 on April 30, 2019. The monitoring interval is 20 minutes.

    GET https://{Cloud Eye endpoint}/V1.0/{project_id}/metric-data?namespace=SYS.ECS&metric_name=cpu_util&dim.0=instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d&from=1556625600000&to=1556632800000&period=1200&filter=min

    Response parameters

    {
    	"http_code": 429,
    	"message": {
    		"details": "Too Many Requests.", 
    		"code": "ces.0429"
    	},
    	"encoded_authorization_message": null
    }