Skip to content

Commit 4f27a4f

Browse files
rlankfodiscordianfish
authored andcommitted
add additional vm_stat memory metrics for darwin
Signed-off-by: Robbie Lankford <[email protected]>
1 parent 996563f commit 4f27a4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

collector/meminfo_darwin.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ func (c *meminfoCollector) getMemInfo() (map[string]float64, error) {
6868
"free_bytes": ps * float64(vmstat.free_count),
6969
"swapped_in_bytes_total": ps * float64(vmstat.pageins),
7070
"swapped_out_bytes_total": ps * float64(vmstat.pageouts),
71+
"internal_bytes": ps * float64(vmstat.internal_page_count),
72+
"purgeable_bytes": ps * float64(vmstat.purgeable_count),
7173
"total_bytes": float64(total),
7274
"swap_used_bytes": float64(swap.xsu_used),
7375
"swap_total_bytes": float64(swap.xsu_total),

0 commit comments

Comments
 (0)