[M] Change in ...nfs-ganesha[next]: monitoring: prefer libproc2 for process resource metrics
erodriguez@lazyk-ranch.com has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1259542?usp=email ) Change subject: monitoring: prefer libproc2 for process resource metrics ...................................................................... monitoring: prefer libproc2 for process resource metrics procps-ng 4.x (e.g. RHEL/CentOS 10) ships libproc2 and no longer provides the legacy libprocps/readproc API. CMake only looked for procps, so resource gauges (RSS, VSize, swap, CPU) stayed disabled on those platforms even when procps-ng-devel was installed. Detect and link libproc2 first, falling back to procps when needed. Collect the same fields via procps_pids_* into a library-neutral ganesha_proc_mem_info, and skip updates when dynamic metrics were not initialized. Legacy openproc path now closes/frees the PROCTAB. Change-Id: Ic1a5ebbf976b0823bcc882b7f6efe120294e14f0 Signed-off-by: Edwin Rodriguez <edwin.rodriguez1@ibm.com> --- M src/monitoring/CMakeLists.txt M src/monitoring/dynamic_metrics.cc M src/monitoring/include/dynamic_metrics.h M src/monitoring/prometheus_exposer.cc 4 files changed, 123 insertions(+), 34 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/42/1259542/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1259542?usp=email To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: Ic1a5ebbf976b0823bcc882b7f6efe120294e14f0 Gerrit-Change-Number: 1259542 Gerrit-PatchSet: 1 Gerrit-Owner: erodriguez@lazyk-ranch.com
participants (1)
-
Name of user not set (GerritHub)