-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make --watch-config aware of addition and removal of .conf files #12389
Labels
area/agent
feature request
Requests for new plugin and for new features to existing plugins
waiting for response
waiting for response from contributor
Comments
Create is covered by #12264 as well. |
This would be great. I already get logging messages when config files are added and deleted, seems like it would be a pretty easy step to have trigger a reload.
|
powersj
added a commit
to powersj/telegraf
that referenced
this issue
Jul 19, 2024
This allows for watching for new files in a configuraiton directory. When a new file is found, Telegraf will reload with that file added to the list of files to watch. Note this will reload when any file, a telegraf config or not, is added to the directory. TODO: notify type poll does not seem to work, only inotify TODO: test on Windows fixes: influxdata#12389 fixes: influxdata#12264
1 task
powersj
added a commit
to powersj/telegraf
that referenced
this issue
Jul 23, 2024
This allows for watching for new files in a configuraiton directory. When a new file is found, Telegraf will reload with that file added to the list of files to watch. Note this will reload when any file, a telegraf config or not, is added to the directory. TODO: test on Windows fixes: influxdata#12389 fixes: influxdata#12264
I have a PR that adds the ability to watch directories for addition and removal of configuration files: #15645 could you download the artifacts in that PR and verify that this resolves your use-case? Thanks! |
powersj
added a commit
to powersj/telegraf
that referenced
this issue
Jul 24, 2024
This allows for watching for new files in a configuraiton directory. When a new file is found, Telegraf will reload with that file added to the list of files to watch. Note this will reload when any file, a telegraf config or not, is added to the directory. TODO: test on Windows fixes: influxdata#12389 fixes: influxdata#12264
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/agent
feature request
Requests for new plugin and for new features to existing plugins
waiting for response
waiting for response from contributor
Use Case
This feature would avoid to have to
kill -1
telegraf each time a .conf file is added or removed inside the config directory.Expected behavior
once
--watch-config [notify, poll]
is set it should be aware of:and reload configuration accordingly.
Actual behavior
Currently
--watch-config [poll, notify]
reloads the configuration only when the content of a .conf file changes.When a .conf file is added or removed, a manual configuration reload is still needed.
Additional info
No response
The text was updated successfully, but these errors were encountered: