Inofify
Show which procs use how many inotify watchers:
/home/varac/projects/monitoring/prometheus/exporters/node-exporter-textfile-collector-scripts/inotify-instances
On a remote host:
wget https://raw.githubusercontent.com/prometheus-community/node-exporter-textfile-collector-scripts/master/inotify-instances
python3 ./inotify-instances
Show current limits:
$ sysctl fs.inotify
fs.inotify.max_queued_events = 16384
fs.inotify.max_user_instances = 128
fs.inotify.max_user_watches = 65536