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

Billing "metrics-usage" needs updating for Cortex blocks #2714

Open
bboreham opened this issue May 19, 2021 · 0 comments
Open

Billing "metrics-usage" needs updating for Cortex blocks #2714

bboreham opened this issue May 19, 2021 · 0 comments
Labels
chore refinement/improvement of end user functionality; making things work better component/billing

Comments

@bboreham
Copy link

Note this is informational, not used in calculation of charges.

The billing-metrics program has a query to fetch Cortex storage usage:

m.queryAndEmit(ctx, now, "storage-bytes", "-cortex", `sum by (user)(increase(cortex_ingester_chunk_stored_bytes_total{job="cortex/ingester"}[1m])) or sum by (user)(increase(cortex_chunk_store_stored_chunk_bytes_total{job="cortex/ingester"}[1m]))`)

this is chunks-specific, and the query is returning zero now we have moved to blocks.

@bboreham bboreham added chore refinement/improvement of end user functionality; making things work better component/billing labels May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore refinement/improvement of end user functionality; making things work better component/billing
Projects
None yet
Development

No branches or pull requests

1 participant