How Can I Query Monitoring Data of a Metric?
FAQ Before API Calling
- Issue 1
How can I call the GET /V1.0/{project_id}/metric-data API?
Solution
For details, see Querying Monitoring Data of a Metric.
- Issue 2
What are the domain names for calling this API in different regions?
Solution
For details, see Regions and Endpoints.
Troubleshooting Common 4XX Issues
- 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 }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot