Difference between two consecutive points

Hi,

My points in my DB are the total up-links, I want to display the difference between the two, so the difference of 159123 - 159085 at epoch 1596352429461149465

DB points
1596348829461149465 eui-b827ebfffe400c98 159085
1596352429461149465 eui-b827ebfffe400c98 159123

The result I want to post to a new DB.

Thanks

In flux, there’s a difference() built in function. I actually used it in my out setup last week when I needed to know if error counters were increasing on a nic card.

https://docs.influxdata.com/flux/v0.65/stdlib/built-in/transformations/aggregates/difference/

Thanks

This is for Flux? I use Influx, let me have a look.