How Meter Features Work
When you create a meter feature, Fluxrate automatically creates:- A Feature (the entitlement definition)
- A corresponding Meter (the usage tracking engine)
meter_token that your backend uses to send usage events.
Creating a Meter Feature
- Dashboard
- API
- Go to Features in the sidebar
- Click Add Feature
- Select Meter as the type
- Configure the meter settings and click Create
Request Fields
Aggregation Types
SUM
Adds up all values received in the billing period. Best for: API calls, data transferred, messages sent, compute minutes.MAX
Takes the highest single value observed during the period. Best for: Peak concurrent connections, high-water mark measurements.UNIQUE_COUNT
Counts the number of distinct values of a property. Best for: Monthly active users, unique devices, distinct API consumers.For
UNIQUE_COUNT meters, send the value to count as the metadata.user_id field. The SDK endpoint handles this mapping automatically.LAST
Takes the most recent value received. Best for: Current storage usage, current seat count (snapshot billing).Usage Filters
Meter features support filters to segment events. For example, track API calls only from specific regions or versions:Filter Rules
- Maximum 5 filters per meter
- Each filter supports up to 15 values
- Values are matched exactly (strings)
- Filter keys cannot be added or removed after creation — only values can be updated