agent refactoring - create agent/docker.go, agent/system.go

This commit is contained in:
Henry Dollman
2024-09-28 17:49:04 -04:00
parent 2ecf5572ba
commit 73d0dd25ec
6 changed files with 416 additions and 395 deletions

View File

@@ -18,6 +18,9 @@ func (a *Agent) initializeDiskInfo() {
efPath := "/extra-filesystems"
hasRoot := false
// Create map for disk stats
a.fsStats = make(map[string]*system.FsStats)
partitions, err := disk.Partitions(false)
if err != nil {
slog.Error("Error getting disk partitions", "err", err)