process-exporter icon indicating copy to clipboard operation
process-exporter copied to clipboard

FreeBSD support

Open glensc opened this issue 2 years ago • 1 comments

I know go can easily cross-compile to freebsd, but does the software know how to process process data on freebsd?

glensc avatar Sep 01 '22 10:09 glensc

No.

This software essentially crawls Linux's /proc filesystem, which does not exist on FreeBSD. You'd need to rewrite process_exporter to utilize the contents of FreeBSD's sysctl and procstat utilities. It's probably doable, but I don't believe any effort has been put toward that goal.

You might be able to cheat and try doing a mount -t procfs proc /proc on FreeBSD and run process_exporter to see what happens, but that's definitely undocumented and not-officially-supported territory. FreeBSD disables procfs by default, and you probably shouldn't add a dependency for yourself on deprecated functionality.

mdschmitt avatar Oct 26 '22 08:10 mdschmitt