You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have achieved a "balance" where I don't hit any rate limits for cost. Having all data in Prometheus we can experiment and generate useful dashboards.
@theok-nice
The "legacy" option is using a fixed query which might not be that useful for metrics depends what your use case it.
The plan is to only offer queries so you can/have to define what metrics you want. That's what's already available in the beta versions.
So to get the current version you might want something like: COSTS_QUERY_resourceGroup=ResourceGroupName
which gives you the list of costs per resourcegroup.
The new version is also caching costs either on local disc (eg. PVC) or can store the data in a storageaccount. With caching you could set scrape time of cost query to 12 or 24h.
Activity
mblaschke commentedon Mar 18, 2023
with next version this might be difficult as you have to define your own queries for cost reporting.
it also depends what you need/want.
theok-nice commentedon Mar 21, 2023
@mblaschke will next version we have the option to continue pull all cost metrics - in stead of queries for cost?
When it comes to graphs, its much more practical to generate and experiment with the prom queries in grafana, having all data available.
Using azure-resourcemanager-exporter:22.12.0-beta4 and
I have achieved a "balance" where I don't hit any rate limits for cost. Having all data in Prometheus we can experiment and generate useful dashboards.
mblaschke commentedon Mar 21, 2023
@theok-nice
The "legacy" option is using a fixed query which might not be that useful for metrics depends what your use case it.
The plan is to only offer queries so you can/have to define what metrics you want. That's what's already available in the beta versions.
So to get the current version you might want something like:
COSTS_QUERY_resourceGroup=ResourceGroupNamewhich gives you the list of costs per resourcegroup.
The new version is also caching costs either on local disc (eg. PVC) or can store the data in a storageaccount. With caching you could set scrape time of cost query to 12 or 24h.