Loading article…
Loading article…
Last updated on Aug 28, 2026
Learn how Streams, Meters, and Segments work together in Maxio Metering to turn incoming usage events into a billable quantity. Streams define incoming events, Meters calculate usage totals, and Segments group usage by attribute, connecting measured activity to invoice charges. For where Maxio Metering sits relative to the rest of usage-based billing, start with Understand Maxio Metering.
A Stream defines the structure of the events your system sends to Maxio.
Every Stream includes:
Define the Stream schema before sending event data. Maxio validates incoming events against the Stream schema.
Example: An API Usage Stream may include api_calls, region, and customer_tier as event properties.
A Meter reads events from a Stream and calculates usage.
A Meter defines:
A Stream can have multiple Meters. For example, one Stream can support one Meter that counts API calls and another Meter that sums bytes transferred.
A Segment groups usage by a property value. Use Segments when usage needs separate calculation or pricing by attribute.
A Meter supports up to 10 Segment properties simultaneously, enabling granular usage splits by dimensions such as region, model tier, API key, plan type, and environment.
Common Segment examples include:
Example: If events include a region property, a Meter can calculate usage separately for us-east, eu-west, and ap-southeast.
Metering objects work together in this order:
Stream → Meter (with optional segmentation) → Metered Product → Invoice
Example setup:
Use the following setup to bill API calls by region:
API Usage Streamapi_callsSumregionKey rules:
To create these objects for the first time, see Get Started with Maxio Metering.
To review configuration fields, see Configure Maxio Metering.
For guidance on aggregation types, see Choose the Right Aggregation Type.
For product pricing by Segment, see Design Your Catalog: Use Metering with Products.
Still need help?
Reach out and our support team will take it from here.