add additional vm_stat memory metrics for darwin

Signed-off-by: Robbie Lankford <robert.lankford@grafana.com>
This commit is contained in:
Robbie Lankford 2021-12-06 15:56:13 -06:00 committed by Johannes 'fish' Ziemke
parent 996563f972
commit 4f27a4fd8e
1 changed files with 2 additions and 0 deletions

View File

@ -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),