You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow Telegraf inputs plugins to be run on start trough a new configuration attribute onstart which default to false, but when set to true would run the input plugin after Telegraf has started.
Current behavior:
Input plugins are run every interval or round_interval.
Desired behavior:
I want the input plugin to be run right after Telegraf start.
Use case:
I fetch an HTTP API every 3 hours thanks to the http plugin. This fetch then insert the resulting data in InfluxDB. I want to be able to run the first fetch right after Telegraf start so my database will directly have data and clients don't need to wait 3 hours before querying InfluxDB.
The text was updated successfully, but these errors were encountered:
@lucassardois - if you set round_interval = false as hipska mentioned your Telegraf will run and collect right away and continue collecting every 3 hours from there.
Feature Request
Allow Telegraf inputs plugins to be run on start
Proposal:
Allow Telegraf inputs plugins to be run on start trough a new configuration attribute
onstart
which default to false, but when set to true would run the input plugin after Telegraf has started.Current behavior:
Input plugins are run every interval or round_interval.
Desired behavior:
I want the input plugin to be run right after Telegraf start.
Use case:
I fetch an HTTP API every 3 hours thanks to the
http
plugin. This fetch then insert the resulting data in InfluxDB. I want to be able to run the first fetch right after Telegraf start so my database will directly have data and clients don't need to wait 3 hours before querying InfluxDB.The text was updated successfully, but these errors were encountered: