diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 37ad0fbf2916..17c292a412c7 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -39,6 +39,7 @@ https://github.com/elastic/beats/compare/v6.0.0-alpha1...master[Check the HEAD d *Metricbeat* - Fix issue affecting Windows services timing out at startup. {pull}4491[4491] +- Fix incorrect docker.diskio.total metric calculation. {pull}4507[4507] *Packetbeat* diff --git a/metricbeat/module/docker/diskio/helper.go b/metricbeat/module/docker/diskio/helper.go index ff1831e2d7ca..11cf75feae01 100644 --- a/metricbeat/module/docker/diskio/helper.go +++ b/metricbeat/module/docker/diskio/helper.go @@ -55,7 +55,7 @@ func (io *BLkioService) getBlkioStats(myRawStat *docker.Stat) BlkioStats { if exist { myBlkioStats.reads = io.getReadPs(&oldBlkioStats, &newBlkioStats) myBlkioStats.writes = io.getWritePs(&oldBlkioStats, &newBlkioStats) - myBlkioStats.totals = io.getReadPs(&oldBlkioStats, &newBlkioStats) + myBlkioStats.totals = io.getTotalPs(&oldBlkioStats, &newBlkioStats) } else { io.BlkioSTatsPerContainer = make(map[string]BlkioRaw) }