diff --git a/cmd/sentinel/cpu.go b/cmd/sentinel/cpu.go index d6188d5..87c5fce 100644 --- a/cmd/sentinel/cpu.go +++ b/cmd/sentinel/cpu.go @@ -11,7 +11,7 @@ import ( "github.com/shirou/gopsutil/cpu" ) -var cpuCsvHeader = "time,percent\n" +var cpuCsvHeader = "time,usage_percent\n" type CpuUsage struct { Time string `json:"time"` diff --git a/cmd/sentinel/disk.go b/cmd/sentinel/disk.go index 2946697..18f7de9 100644 --- a/cmd/sentinel/disk.go +++ b/cmd/sentinel/disk.go @@ -21,7 +21,7 @@ type DiskUsage struct { Usage string `json:"usage"` } -var diskCsvHeader = "time,disk,mount_point,total,free,usagePercent\n" +var diskCsvHeader = "time,disk,mount_point,total,free,usage_percent\n" func getDiskUsage(csv bool) (string, error) { partitions, err := disk.Partitions(true) diff --git a/cmd/sentinel/memory.go b/cmd/sentinel/memory.go index a0546a3..ef98281 100644 --- a/cmd/sentinel/memory.go +++ b/cmd/sentinel/memory.go @@ -11,7 +11,7 @@ import ( "github.com/shirou/gopsutil/mem" ) -var memoryCsvHeader = "time,used,free,usedPercent\n" +var memoryCsvHeader = "time,used,free,used_percent\n" type MemUsage struct { Time string `json:"time"`