To obtain near real-time metric query results, you may need to continuously call a large number of API operations. This method has many disadvantages, such as high implementation complexity, easy data loss, repeated operations, and poor data real-time performance. If you want to query metric data in real time, we recommend that you use the real-time data export feature of Hybrid Cloud Monitoring to obtain metric data in streaming mode.
Export the metric data of cloud services in real time. For more information, see Export monitoring data in real time.
Before you export metric data in real time, make sure that Hybrid Cloud Monitoring is activated. For more information, see Activate Hybrid Cloud Monitoring.
For more information about the billing of the real-time data export feature, see Billing of the cloud monitoring exporter feature.