Skip to content
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

Grafana billing dashboard #26

Open
lsdosar opened this issue Mar 1, 2023 · 3 comments
Open

Grafana billing dashboard #26

lsdosar opened this issue Mar 1, 2023 · 3 comments

Comments

@lsdosar
Copy link

lsdosar commented Mar 1, 2023

Greetings!
I want to thank you guys, for the awesome project. It is exactly what I was looking for

If someone, by chance, has an example or ready-made Grafana billing dashboard, could you please share it?
Thank you so much

@mblaschke
Copy link
Member

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
Copy link

theok-nice commented 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

  SCRAPE_TIME_COSTS: "5m"
  COSTS_REQUEST_DELAY: "30s"

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
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants