Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/reloader: improve detection of directory changes (#3136)
* pkg/reloader: improve detection of directory changes When watching for changes in directories, the reloader used to rely only on the watch interval and not the inotify events. This commit implements a more efficient detection of changes for watched directories. The change also adds a new `DelayInterval` option that allows to delay the config reload after no additional event are received. Finally a new metric, `thanos_sidecar_reloader_config_apply_operations_total`, is added and `thanos_sidecar_reloader_config_apply_errors_total` has been renamed to `thanos_sidecar_reloader_config_apply_operations_failed_total` for consistency. Signed-off-by: Simon Pasquier <spasquie@redhat.com> * Updates after Kemal's review Signed-off-by: Simon Pasquier <spasquie@redhat.com>
- Loading branch information