How metrics are collected
When you configure an Azure credential in Grafana Cloud, Cloud Provider uses the Azure Resource Graph and Azure Resource Manager APIs to discover available metrics to pull, and collects these metrics every two minutes, displaying the most recent data points available in Cloud Provider. Available metrics are refreshed every hour, and your configurations are automatically updated as your environment evolves.
The Azure Metrics Batch API
Grafana Cloud Provider leverages the Azure Metrics Batch API. The API has a significantly higher rate limit than the Azure Metrics API and is able to request metrics for multiple resources at once. This ensures that we can avoid rate limiting and provide metrics data quickly. However, the Metrics Batch API does occasionally experience throttling that can lead to gaps in data collection, specifically, 529 errors. These errors are infrequent, and are usually constrained to a single region for a single resource type. For more information on 529 errors, refer to migrate to the metrics Batch API in the Azure documentation.