mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-08-20 18:33:52 -07:00
AIX: Add paging memory metrics
Signed-off-by: Johannes Ziemke <github@5pi.de>
This commit is contained in:
parent
2c33bc58ea
commit
65d2538f14
|
@ -40,8 +40,12 @@ func (c *meminfoCollector) getMemInfo() (map[string]float64, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return map[string]float64{
|
return map[string]float64{
|
||||||
"total_bytes": float64(stats.RealTotal * 4096),
|
"total_bytes": float64(stats.RealTotal * 4096),
|
||||||
"free_bytes": float64(stats.RealFree * 4096),
|
"free_bytes": float64(stats.RealFree * 4096),
|
||||||
"available_bytes": float64(stats.RealAvailable * 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
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue