-
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
Detect changes to config and reload telegraf (copy of pr #8529) #9485
Conversation
Excluding windows specific changes
Looks like new artifacts were built from this PR. Get them here!Artifact URLs |
@wojciechka, @ssoroka Are you able to take the artifacts posted by the Telegraf Tiger and see if this works for you? I am not entirely sure what the best way to test it would be. If you can provide some steps on how to test it, I'd be happy to do it as well. |
Unfortunately this does not work inside Kubernetes pods that have their configurations mounted as secrets. This is because the secrets are handled as symlinks to symlinks and this logic may not be detecting all of the underlying changes. I can confirm that just using I have tried to reproduce it outside of Kubernetes, but could not reproduce the case where it does not work, it may be that the mounts are handled by Kubernetes. Would it be possible to implement it by periodically reading the config file and comparing its contents and/or checksum? This could be something like |
After spending more time and testing both modes, I have verified that I have verified this in |
Is there any plan to support remote config (over http)? If I try this option I get:
|
resolves #7187
This feature was thought to be already supported, but has now made clear that it isn't and is required for another project effort. To help get this pull request ready quicker I've taken it over to resolve merge conflicts and use the latest influxdata/tail now that the fix has been merged. This pr still needs to be tested and reviewed to make sure this is the best approach. I also didn't copy over the windows specific changes because it wasn't obvious why they were necessary, see the original pull request #8529 for more details.
Lots of kudos to @vlastahajek for the original pr and the fix to the tail repo.