Created attachment 220677 [details] Patch to add FreeBSD memory stats to Datadog The stock Datadog agent only reports the bare minimum of available memory stats from FreeBSD. The https://github.com/shirou/gopsutil used by Datadog for collecting memory stats has several additional stats from FreeBSD: * Active memory * Inactive memory * Buffers * Wired memory * Laundry list The attached straightforward patch simply adds these stats to the Datadog system.mem family of metrics. We've been using these for a couple of weeks now with good luck, and now actually far more useful memory graphs in Datadog. I hope you find this useful. And as before: Thanks for the Datadog agent port!
Thanks Douglas. I'll include this in the next version.
This will be fixed by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252514