region filter lets you distinguish where that usage occurred, while a provider filter identifies the cloud provider. You can use the same metric across these dimensions.
How filters work
A dimension is an attribute of usage, such as its region or model. Define each filter with akey and a list of values:
key: the event property to match, such asregion.values: the configured values for that property, such asus-east-1andeu-west-1.
Use cases
Usage by region
Usage by region
Measure compute hours across regions. Include
region in each event to identify where the usage occurred.Usage by model
Usage by model
Measure token usage across models. Include
model in each event to identify which model processed the tokens.Usage by service tier
Usage by service tier
Measure API calls by service tier. Use
tier to distinguish real-time requests from batch requests.Combined dimensions
Combined dimensions
Include both
region and model when you want to distinguish usage by where it occurred and which model was used.Create filters
Thecompute metric adds the hours reported in usage events. Define provider and region filters to distinguish the cloud provider and location associated with that usage.
- Dashboard
- API
- Create a new billable metric.
- Add a new filter.
- Define its key and values.

How to add filters
Event with filter values
aws in us-east-1. The hours property supplies the quantity; provider and region supply the dimensions.
Edit filters
When you updatefilters, send the complete set you want to keep. The supplied array replaces the existing filters. An empty array removes all filters, subject to restrictions on values already referenced by Product filters.
Filter values referenced by Product filters cannot be removed. Remove or change the Product filter first.
Payload A
Payload B
europestays.usais removed, unless a product filter references it. In that case the update is rejected.USAis added. Keys and values are case-sensitive, so it is a new value.africais added.
name, description and permitted filter changes can be updated.
Design guidance
- Choose a metric code that describes the measurement, such as
compute_hours. - Send the dimensions you need to distinguish as event properties.
- Use consistent spelling and capitalization for filter values.
Next step
See Product filters to learn how to select combinations of these dimensions for a Product.Create a billable metric (API)
POST /billable_metricsCreate a product filter (API)
POST /products/{product_code}/filters