Bug 251926 - sysutils/datadog-agent: Report more memory details for FreeBSD
Summary: sysutils/datadog-agent: Report more memory details for FreeBSD
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-17 20:59 UTC by Douglas K. Rand
Modified: 2021-01-10 13:24 UTC (History)
3 users (show)

See Also:
uros: maintainer-feedback+


Attachments
Patch to add FreeBSD memory stats to Datadog (652 bytes, patch)
2020-12-17 20:59 UTC, Douglas K. Rand
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas K. Rand 2020-12-17 20:59:55 UTC
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!
Comment 1 uros 2020-12-24 05:43:51 UTC
Thanks Douglas. I'll include this in the next version.
Comment 2 uros 2021-01-08 17:20:58 UTC
This will be fixed by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252514