Questions about the Azure Metrics Data plane API

Pawan Rawal 0 Reputation points
2025-01-23T21:23:22.2966667+00:00

We are trying to use the Azure Metrics Data Plane API (https://techcommunity.microsoft.com/blog/azureobservabilityblog/azure-monitor--announcing-public-preview-of-azure-metrics-data-plane-api/3805986). We understand it has a limit of 360,000 API calls per hour. Is this limit applied at the subscription level, subscription + region level, or subscription + region + service principal level? Does the limit share across service principals, or does it apply individually to each service principal?

Additionally, are there any metrics available that can advise on current usage and indicate how much under or over the limit we are?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,457 questions
{count} votes

3 answers

Sort by: Most helpful
  1. hossein jalilian 9,855 Reputation points
    2025-01-23T22:31:49.14+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    he Azure Metrics Data plane API offers a significant improvement in query limits compared to the existing Azure Resource Manager APIs. It allows up to 360,000 API calls per hour, which is a substantial increase from the 12,000 API calls per hour limit of the REST API. However, the search results do not provide specific information about how this limit is applied across different levels or service principals.Regarding the application of the limit, the search results do not explicitly state whether it's applied at the subscription level, subscription + region level, or subscription + region + service principal level. Similarly, there's no information on whether the limit is shared across service principals or applied individually to each one.As for metrics to monitor current usage and proximity to the limit, the search results do not mention any specific metrics or tools for this purpose.To get accurate and up-to-date information on these specific aspects of the Azure Metrics Data plane API, it would be best to:

    • Consult the official Azure documentation for the most current details on API limits and their application.
    • Contact Azure support directly for clarification on how the limits are applied across different levels and service principals.
    • Inquire about any available metrics or tools for monitoring API usage and limit consumption

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful


  2. Naveena Patlolla 80 Reputation points Microsoft Vendor
    2025-01-24T09:58:46.8633333+00:00

    Hi @Pawan Rawal,

    Q1)Is this limit applied at the subscription level, subscription + region level, or subscription + region + service principal level? Does the limit share across service principals, or does it apply individually to each service principal?

    The Metrics-List API call is considered an ARM call. Therefore, it's subject to the subscription/tenant limits that calls to the subscription are, see Request limits and throttling - Azure Resource Manager | Microsoft Docs. For capturing those API calls beyond Cost Management and Billing, Activity Logs is going to be your best bet. You can filter by caller and destination, but you have to export activity logs on the subscription to a log analytics workspace to do so.

    Please refer to the below link:

    https://learn.microsoft.com/en-us/answers/questions/1603762/count-of-performed-rest-api-metriclist-ca

    Q2)Additionally, are there any metrics available that can advise on current usage and indicate how much under or over the limit we are?

    Steps:

    Check Diagnostic Settings:

    Navigate to your subscription or resource group.

    Verify that Activity Logs are being sent to Log Analytics.

    Go to Logs:

    In the Azure Portal, go to Monitor → Logs.

    Run a Query: Use the following KQL (Kusto Query Language) query and modify as per your need:

    AzureActivity | where OperationNameValue contains "API" | summarize Count = count() by bin(TimeGenerated, 1h), OperationNameValue 
    

    Steps:

    Go to Resource Graph Explorer:

    In the Azure Portal, search for Resource Graph Explorer.

    Run a Query: Use the following query to retrieve API call counts:

    Resources 
    | where type == 'microsoft.insights/metrics' | project name, resourceGroup, subscriptionId, timeGenerated
    

  3. Naveena Patlolla 80 Reputation points Microsoft Vendor
    2025-02-03T09:19:02.03+00:00

    @Pawan Rawal,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:

    Questions about the Azure Metrics Data plane API

    Solution:

    The Azure Data Plane Metrics Batch API allows 360,000 requests per hour per service principal, with a 3,000 requests per 30-second limit, and returns 429/529 errors when throttled, as no quota tracking metrics are available.

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    https://learn.microsoft.com/en-us/answers/support/accept-answer#why-only-one-accepted-answer

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.