Closed hollow closed 4 years ago
I think we should make a derivative metric not inherit from Meter
.
The things to consider are:
With the Meter
we have, we expect that we will be incrementing it as things happen, but with this derived metric, we are (I would guess) expecting to update it on a regular interval, so it has a lot of different implications.
In my case:
since i collect these metrics every second, i don't really care about the other two, but i would suggest something like:
probably do it similar to RRDtool, people are already familiar how DERIVE works with RRAs
A derivative metric is like a meter but accepts an absolute counter as input. This is useful for metrics like bytes sent over the network or cpu cycles which are generally monotonically increasing counters and therefore need to be derived from the previous sample to get a useful rate/s value.