diff --git a/plugins/inputs/docker/docker.go b/plugins/inputs/docker/docker.go index 5d4cb0de8..c98f1f845 100644 --- a/plugins/inputs/docker/docker.go +++ b/plugins/inputs/docker/docker.go @@ -534,11 +534,11 @@ func parseContainerStats( if daemonOSType != "windows" { memfields["limit"] = stat.MemoryStats.Limit - memfields["usage"] = stat.MemoryStats.Usage memfields["max_usage"] = stat.MemoryStats.MaxUsage mem := calculateMemUsageUnixNoCache(stat.MemoryStats) memLimit := float64(stat.MemoryStats.Limit) + memfields["usage"] = uint64(mem) memfields["usage_percent"] = calculateMemPercentUnixNoCache(memLimit, mem) } else { memfields["commit_bytes"] = stat.MemoryStats.Commit