Hi , it is expected behaviour that there is nothing in the measurement ,
the KapacitorLoopbackNode does not write anything in the database but it writes data back tot the kapacitor stream.
I hope to see some examples or feedback from people who have used this node …
From the documentation :
The kapacitorLoopback node writes data back into the Kapacitor stream. To write data to a remote Kapacitor instance use the InfluxDBOutNode.
The first node in a tick script is always a stream node or a batch node , it is the start of the pipeline.
The kapacitorloopbacknode sends the data back to the beginning of the pipeline .
It acts like a wile true loop .
If you do that you must find a way to exit the loop, else an infinite loop is detected.
The example in the link exits the loop with a log() node when the desired tolerante is achieved…
var tolerance = 0.0001
var sq = stream
|from()
.measurement(‘m’)
|eval(lambda: 0.5 * (“x” + (“s” / “x”)))
.as(‘xn’)
.keep()
The documentation says :
The kapacitorLoopback node writes data back into the Kapacitor stream. To write data to a remote Kapacitor instance use the [InfluxDBOutNode]
You should read it as :
The kapacitorLoopback node writes data back into the beginning of the Kapacitor stream. To write data to a remote Kapacitor instance use the [InfluxDBOutNode]