add ZFS ARC memory accounting

This commit is contained in:
Henry Dollman
2024-10-05 18:07:42 -04:00
parent af4877ca30
commit 73aae62c2e
5 changed files with 70 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ import (
type Agent struct {
debug bool // true if LOG_LEVEL is set to debug
zfs bool // true if system has arcstats
memCalc string // Memory calculation formula
fsNames []string // List of filesystem device names being monitored
fsStats map[string]*system.FsStats // Keeps track of disk stats for each filesystem