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.
Note this is informational, not used in calculation of charges.
The billing-metrics program has a query to fetch Cortex storage usage:
service/metrics-usage/main.go
Line 112 in 2e43d39
this is chunks-specific, and the query is returning zero now we have moved to blocks.