How to understand Metrics REST API cost?

Aabot 20 Reputation points
2024-03-08T12:52:10.8566667+00:00

I am trying to understand the METRICS REST API usage cost. I make a successful call to metricsQueryClient.queryResource. The response has a cost property. What unit is that in? I am assuming bytes used right now.

What category does the REST API cost fall under in Azure's Cost Management UI. I see under Bandwidth a "Bandwidth Inter-Region" and "Rtn Preference" line items. Looking further, I see an Bandwidth Inter Region for US at 0.02/GB. Is this correct?

Thanks.

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,355 questions
0 comments No comments
{count} votes

Accepted answer
  1. SadiqhAhmed-MSFT 41,716 Reputation points Microsoft Employee
    2024-03-08T17:15:10.2566667+00:00

    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

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful