Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-24271

JavaScript in Azure Cost Management by HTTP have throttles requests

XMLWordPrintable

    • 1

      Steps to reproduce:

      1. Run test script item `azure.get.monthly.costs` few times with small period.
      2. Request failed with status code 429 (Too many requests. Please retry)

      Azure Resource Manager throttles requests

      Get received headers:

       Warning: [ AzureCost] headers: {
      ...
          "x-ms-ratelimit-microsoft.costmanagement-entity-retry-after": "37",
          "x-ms-ratelimit-remaining-microsoft.costmanagement-entity-requests": "DefaultQuota:0",
          "x-ms-ratelimit-remaining-microsoft.costmanagement-tenant-requests": "DefaultQuota:15",
          "x-ms-ratelimit-microsoft.costmanagement-clienttype-retry-after": "0",
          "x-ms-ratelimit-remaining-microsoft.costmanagement-clienttype-requests": "DefaultQuota:0",
      ...
      }
      
      

      Expected:

      Get raw data using Method sleep(delay) in JavaScript

      var ratelimit = retry-after
      Zabbix.sleep(ratelimit) 
      

       

            egordymov Evgenii Gordymov
            egordymov Evgenii Gordymov
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: