Skip to content

Telegraf watch and restart with new configuration file #7187

@gitirabassi

Description

@gitirabassi

Feature Request

Telegraf should watch and restart with new configuration file

Proposal:

Telegraf watch and restart with new configuration file

Current behavior:

If a new config file is placed in the same place where telegraf is running, the only way of picking up the changes is either to restart the process or sending SIGHUP signal

Desired behavior:

Telegraf making a md5 checksum of the whole config file once it's fully templated out and then trying to template it out every 10/30/60 seconds to see if something changed. If the md5 checksum has changed, then trigger a restart

Use case:

This would be very useful in a container environment because config files can be updated very often and it would be. and it's very easy to run hundreds/thousands of telegraf so the more automation we have the better

Metadata

Metadata

Assignees

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