Hi all. Wanted to count number of records in real time. But its taking time to calculate for me, i am using flux query to count. I am using telegraf and influxdb, is there any way i can get the count in real time, with not much delay. Is telegraf or influxdb stores counts of records pushed internally, is running task is only way to compute and get results in run time?
Create another column. In it you count up the rows. With a new data record you increase the column by 1. When reading out you must only read out the column in the last data record.