I want Kapacitor to detect the number of data being inserted into InfluxDB

For example, data is being inserted into InfluxDB as follows:

time, Sensor1, Sensor2, Sensor3
2019-09-01T00:00:00.0Z, 1, 2, 3
2019-09-01T00:00:00.1Z, 2, 3, 4

The above data is being inserted at 50ms intervals.

Kapacitor wants to detect the number of data accumulated and send an alarm when a certain number is accumulated.

For example, if InfluxDB has 100 data, Kapacitor will send an alarm that 100 data has accumulated.

This 100 is the number of rows.

And it’s a stream, not a batch.

It’s so hard to make a Tick script.

I look forward to your kind reply.

Thank you.