Skip to content

Commit 65d2538

Browse files
AIX: Add paging memory metrics
Signed-off-by: Johannes Ziemke <[email protected]>
1 parent 2c33bc5 commit 65d2538

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

collector/meminfo_aix.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ func (c *meminfoCollector) getMemInfo() (map[string]float64, error) {
4040
}
4141

4242
return map[string]float64{
43-
"total_bytes": float64(stats.RealTotal * 4096),
44-
"free_bytes": float64(stats.RealFree * 4096),
45-
"available_bytes": float64(stats.RealAvailable * 4096),
43+
"total_bytes": float64(stats.RealTotal * 4096),
44+
"free_bytes": float64(stats.RealFree * 4096),
45+
"available_bytes": float64(stats.RealAvailable * 4096),
46+
"process_bytes": float64(stats.RealProcess * 4096),
47+
"paging_space_total_bytes": float64(stats.PgSpTotal * 4096),
48+
"paging_space_free_bytes": float64(stats.PgSpFree * 4096),
49+
"page_scans_total": float64(stats.Scans),
4650
}, nil
4751
}

0 commit comments

Comments
 (0)