Skip to content

Allow input plugin to be run on start #9245

Closed
@lucassardois

Description

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.

Metadata

Assignees

No one assigned

    Labels

    feature requestRequests for new plugin and for new features to existing plugins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions