Skip to content

Commit f7298b8

Browse files
committed
add additional vm_stat memory metrics for darwin
Signed-off-by: Robbie Lankford <robert.lankford@grafana.com>
1 parent b5cb72b commit f7298b8

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)