-
Problem report
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
Azure CostManagement
-
1
Steps to reproduce:
- Run test script item `azure.get.monthly.costs` few times with small period.
- 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)