Implement billing worker prototype (hourly aggregates + credits) #51

Open
opened 2025-09-01 14:22:53 +00:00 by chris · 0 comments
Owner

Description

  • Small service that queries Prometheus hourly to compute usage (CPU core-hours, memory GiB-hours, egress) per namespace.
  • Apply per-tenant credits or 100% discount flags stored in billing DB and produce invoice previews.

Priority: P0
Estimate: 12 hours
Acceptance criteria

  • Worker produces an invoice preview for each tenant that includes raw usage, price, credits applied, and resulting total.
  • Admin can mark tenant as 100% discounted in DB and previews reflect zero charge.
Description - Small service that queries Prometheus hourly to compute usage (CPU core-hours, memory GiB-hours, egress) per namespace. - Apply per-tenant credits or 100% discount flags stored in billing DB and produce invoice previews. Priority: P0 Estimate: 12 hours Acceptance criteria - Worker produces an invoice preview for each tenant that includes raw usage, price, credits applied, and resulting total. - Admin can mark tenant as 100% discounted in DB and previews reflect zero charge.
chris added this to the D - Metering & Billing milestone 2025-09-01 14:22:53 +00:00
chris added the
billing
backend
prototype
labels 2025-09-01 14:22:53 +00:00
chris self-assigned this 2025-09-01 14:22:53 +00:00
chris added this to the MVP project 2025-09-03 06:51:58 +00:00
This repository is archived. You cannot comment on issues.
No description provided.