sum
Trips when the cumulative total of all values in a window exceeds a budget.
How it works
Measures cumulative consumption over a window. Unlike averages, it adds every value together to monitor total resource usage or expenditure.
When to use
- Monitoring aggregate resource costs (e.g., bytes sent, API credits).
- Budget-based limits for expensive operations.
- Measuring total load in multi-tenant environments.
When not to use
- When frequency or speed of events matters more than the total amount.
State explanations
closed
Cumulative consumption is within the allocated budget.
half open
Waiting for consumption to slow before resuming.
open
The aggregate budget has been exhausted.