cloudflare/ebpf_exporter

fanotify check can fail due to short lived services

bobrik opened this issue · 0 comments

Here quota-killswitch.service exits too quickly and the failure triggers no fanotify:

Jun 19 23:17:02 xxx systemd[1]: Starting prometheus-ebpf-exporter.service - Prometheus eBPF exporter...
Jun 19 23:17:03 xxx prometheus-ebpf-exporter[716106]: Error resolving inode for "/sys/fs/cgroup/system.slice/quota-killswitch.service": error running stat("/sys/fs/cgroup/system.slice/quota-killswitch.service"): stat /sys/fs/cgroup/system.slice/quota-killswitch.service: no such file or directory
Jun 19 23:17:03 xxx prometheus-ebpf-exporter[716106]: Using on-demand resolution for cgroups (fanotify not available)

We should make it more resilient.