Component ยท Shared or other
agent-manager-metering
CHOREO CLOUD Job Choreo Cloud service
What it is
agent-manager-metering is a small Go service that measures what each customer used and reports it to billing every hour. It reads usage from Prometheus on the observability cluster and posts events to the billing collector.
Why it exists
Billing needs usage figures, such as build minutes and trace spans, without trusting the customers' own reports.
How it works
- Meters build time, evaluation time, runtime vCPU and memory seconds, and trace spans.
- Reads Prometheus in-cluster, using pod labels and recording rules.
- Publishes hourly to POST /metering/api/v1/events on billing, with idempotency keys so retries do not double count.
- Off by default in the code, and switched on in Choreo Cloud's environment settings.
Identity and access
client_credentials as METERING_PUBLISHER_APP at the Platform IdP. Billing derives the customer from the event and token.
Key facts
- Cluster
- cloud-dp-oc-ob
- Frequency
- Hourly
- Edition
- Choreo Cloud
- Namespace
- cloud-dp-oc-ob
Talks to (2)
- reads from Prometheus build/eval seconds, vCPU/GiB seconds, spansHTTP :9091 PromQL
- calls billing-service Hourly usage eventsHTTPS POST /metering/api/v1/events
Inside and around
Part of: cloud-dp-oc-ob (observability plane)