I have set up this stream to get stats of the measurement each 5 min and write in other measurement. It should write the number of points received in the input measurement to a measurement called “stats”.
But it does’t work. It always writes 0 even there are new data. The kapacitor is installed in a linux server, and influxdb in other server. The link is ok, with subscriptions ok. any idea how to deep into the error?
var data_inv1 = stream
|derivative(‘emitted’) //this makes only add a point when changes