Which PromQL function is used to convert a gauge into a rate of increase?
Trap 1: increase()
increase() calculates the total increase, not the per-second rate.
Trap 2: avg()
avg() is an aggregation, not a rate calculation.
Trap 3: sum()
sum() is an aggregation, not a rate calculation.
- A
increase()
Why wrong: increase() calculates the total increase, not the per-second rate.
- B
avg()
Why wrong: avg() is an aggregation, not a rate calculation.
- C
sum()
Why wrong: sum() is an aggregation, not a rate calculation.
- D
rate()
rate() provides the per-second rate of change.