-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get storage account used capacity metric #73
Comments
I have the same issue. Someone found a solution for this? |
Same issue. No solution? |
Hi I've investigated this issue as I need this working as well. I think I found the cause The problem with this is that the "UsedCapacity" metric seems to be exported at a much slower rate than other metrics. By default, I tried to modify the code so that it queries for a larger interval
And it does indeed work. I believe a fix for this would be to include an additional configuration parameter, such as "range_seconds", that would be used to configure this period. I'm linking the PR |
Hi,
I'm not able to get the Azure storage account usedcapacity metric, the exporter always gives me back 0(should be 181.8MiB).
I can see differences between the request made by Azure portal to get the usedcapacity metric en the one made by Prometheus.
Azure portal:
"/subscriptions/XXXXXXXXX/resourceGroups/rg-dev/providers/Microsoft.Storage/storageAccounts/devwww/providers/microsoft.Insights/metrics?timespan=2019-11-11T15:35:00.000Z/2019-11-12T15:35:00.000Z&interval=FULL&metricnames=UsedCapacity&aggregation=average&metricNamespace=microsoft.storage%2Fstorageaccounts&validatedimensions=false&api-version=2019-07-01"
Prometheus Exporter:
/subscriptions/XXXXXXXXXXXXXX/resourceGroups/rg-dev/providers/Microsoft.Storage/storageAccounts/devwww/providers/microsoft.insights/metrics?aggregation=Total%2CAverage%2CMinimum%2CMaximum&api-version=2018-01-01&metricnames=UsedCapacity×pan=2019-11-12T15%3A41%3A53Z%2F2019-11-12T15%3A42%3A53Z
Prometheus gives me
I've modify the exporter's code to generate a request with parameters like the Azure portal.
/subscriptions/XXXXXXX/resourceGroups/rg-dev/providers/Microsoft.Storage/storageAccounts/probstgwww/providers/microsoft.Insights/metrics?aggregation=average&api-version=2019-07-01&autoadjusttimegrain=true&interval=PT5M&metricNamespace=microsoft.storage%2Fstorageaccounts&metricnames=UsedCapacity×pan=2019-11-12T15%3A36%3A48Z%2F2019-11-12T15%3A37%3A48Z&validatedimensions=false
But the exporter still gives me 0.
My configuration:
Any idea?
Thanks
The text was updated successfully, but these errors were encountered: