From 65d2538f143049c1baa161f460ff3c799ef07f35 Mon Sep 17 00:00:00 2001 From: Johannes Ziemke Date: Tue, 22 Apr 2025 14:08:23 +0200 Subject: [PATCH] AIX: Add paging memory metrics Signed-off-by: Johannes Ziemke --- collector/meminfo_aix.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/collector/meminfo_aix.go b/collector/meminfo_aix.go index ff59105b..f90b1fd8 100644 --- a/collector/meminfo_aix.go +++ b/collector/meminfo_aix.go @@ -40,8 +40,12 @@ func (c *meminfoCollector) getMemInfo() (map[string]float64, error) { } return map[string]float64{ - "total_bytes": float64(stats.RealTotal * 4096), - "free_bytes": float64(stats.RealFree * 4096), - "available_bytes": float64(stats.RealAvailable * 4096), + "total_bytes": float64(stats.RealTotal * 4096), + "free_bytes": float64(stats.RealFree * 4096), + "available_bytes": float64(stats.RealAvailable * 4096), + "process_bytes": float64(stats.RealProcess * 4096), + "paging_space_total_bytes": float64(stats.PgSpTotal * 4096), + "paging_space_free_bytes": float64(stats.PgSpFree * 4096), + "page_scans_total": float64(stats.Scans), }, nil }