per-step
Input Stack: |
⇨ |
Output Stack: |
Convert a rate per second to a rate per step interval. This multiplies each value by the step
size (in seconds) to estimate the total count of events that occurred during each step interval.
Metrics like counters are reported as rates (events per second), but in some case you need
to know the actual count of events that occurred in each time interval. For example, if you
have a rate of 64 requests/second and your step size is 60 seconds, this operation converts
that to 3,840 total requests for that step.
Parameters
- expr: The time series expression representing a rate per second
Examples
Converting various rates to per-step counts:
- :integral - Sum values across time (often used with :per-step)
- :derivative - Opposite operation (rate of change)
- :mul - Manual scaling by constant factors
See Also