From 4f27a4fd8efacdf4f738cf3608dbaee972bbf548 Mon Sep 17 00:00:00 2001 From: Robbie Lankford Date: Mon, 6 Dec 2021 15:56:13 -0600 Subject: [PATCH] add additional vm_stat memory metrics for darwin Signed-off-by: Robbie Lankford --- collector/meminfo_darwin.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/collector/meminfo_darwin.go b/collector/meminfo_darwin.go index 0c7f64ee..bbc96937 100644 --- a/collector/meminfo_darwin.go +++ b/collector/meminfo_darwin.go @@ -68,6 +68,8 @@ func (c *meminfoCollector) getMemInfo() (map[string]float64, error) { "free_bytes": ps * float64(vmstat.free_count), "swapped_in_bytes_total": ps * float64(vmstat.pageins), "swapped_out_bytes_total": ps * float64(vmstat.pageouts), + "internal_bytes": ps * float64(vmstat.internal_page_count), + "purgeable_bytes": ps * float64(vmstat.purgeable_count), "total_bytes": float64(total), "swap_used_bytes": float64(swap.xsu_used), "swap_total_bytes": float64(swap.xsu_total),