I was using $_interval since delta is for gauge. I now changed to $_rate_interval and it makes no difference whatsoever. I also really made sure to set an interval where I know I have a lag I want to catch.
Am I really understanding delta correctly.
I expect to get the difference between first value in the series and the last value of the series.
If I start with 0, lots happens in between, lag goes down to 0 by the end of my interval. I expect to get 0.
If I start on 0, lag increases to 10, I expect to get 10
If I start on 10 and goes down to 2, I expect to -8