-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: support for 'create' event from the inotify watcher #11
Conversation
@powersj Can you go through this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is my hesitation: this fork has not been updated in years and I'm not sure what to think about the change in behavior. I think it looks good in general, @srebhan thoughts?
Makes sense. Lets build a consensus on this and then we can proceed. |
cc5bd93
to
97db2a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. However, as @powersj said, it might make sense to completely switch the underlying library in Telegraf, e.g. to https://github.com/fsnotify/fsnotify...
@srebhan that's a reasonable ask. but could involve a lot of work since this repo also uses |
I agree but I would also welcome effort in that direction. https://pkg.go.dev/github.com/docker/docker/pkg/filenotify is a wrapper around |
Hey @srebhan I looked at the above pkg and it seems they have removed in from the source. Although, we can still import it, but there is no active maintenance. Can we proceed with the current state? |
@neelayu what a pitty. This is the last point of existance: https://github.com/moby/moby/tree/2a9e6ace706999be3c0d36f1f94ce20cc3ad33b5/pkg/filenotify |
Another more maintained candidate is https://pkg.go.dev/kubesphere.io/fluentbit-operator/pkg/filenotify |
Inotify watcher type will now emit "CREATE" file event when the watcher is defined on the parent directory.
PS: It also shows commit from the Previous unmerged PR