Hello @Aabot Thank you for reaching out to us on Microsoft Q&A platform. Happy to help!
From the title of the post, I see that you want to understand Metrics REST API cost.
The "cost" property in the response of the metricsQueryClient.queryResource
method in the Azure Metrics REST API represents the estimated cost of the query in US dollars. The cost is calculated based on the amount of data scanned by the query and the pricing tier of the Azure Monitor service.
The cost of using the Azure Metrics REST API falls under the "Data Transfer" category in Azure's Cost Management UI. The cost is based on the amount of data transferred between Azure services, which includes data transferred between the Azure Monitor service and the client making the API call.
The "Bandwidth Inter-Region" and "Rtn Preference" line items that you see under the "Data Transfer" category in Azure's Cost Management UI are related to data transfer between Azure services located in different regions. The "Bandwidth Inter-Region" line item represents the cost of data transfer between Azure services located in different regions, while the "Rtn Preference" line item represents the cost of data transfer for Azure services that have a preference for returning data to a specific region.
The cost of "Bandwidth Inter-Region" for US at 0.02/GB that you mentioned is correct. This means that the cost of transferring 1 GB of data between Azure services located in different regions in the US is $0.02. However, it's important to note that this cost may vary depending on the specific Azure services and regions involved in the data transfer.
Hope this answers your question. Please write back to us if you have any questions!
If the response helped, do "Accept Answer" and up-vote it