I’ve just started to use InfluxDB with telegraf. I have a modbus device that I’m trying to poll via telegraf. So far I’m able to poll data from the modbus device at an interval of 10s (set in the agent field of the config) and the data shows up in InfluxDB correctly.
What I’m curious is if it is possible to have telegraf monitor the modbus value every 2 seconds and only write to influxDB if there is a change of >50 in the value. Is this something that can be done? What is the best approach for this?