Telegraf (OPC UA) data incoming with 1ms speed - but InfluxDB only showing 10 sec intervals

Hi,

The two relevant config options for sending and collecting data are interval and flush_interval:

  • The interval determines how often telegraf will collect data. In this case, every 10 seconds, your telegraf will collect from your inputs.
  • The flush_interval is how often telegraf will send collected data to your output: InfluxDB.

In your scenario, to get more data, you will want to set the interval option to a smaller value (e.g., “1s”) to obtain more data. If collecting the data from your input takes too long, Telegraf will produce some errors about taking too long to collect data.

You will want to play with this setting and find a good value that consistently collects data at the right level of detail for your situation.

Thanks!