From 36ccab73c415942f138dc3c57544611235dc81b7 Mon Sep 17 00:00:00 2001 From: Sergio Jimenez Date: Sun, 3 Apr 2016 19:40:12 +0200 Subject: [PATCH] input(docker): Fixed io sectors/io_time recursive * On engine-api sectors_recursive and io_time_recursive have no Op --- plugins/inputs/docker/docker.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/inputs/docker/docker.go b/plugins/inputs/docker/docker.go index b1bbc63b3..d753e8b63 100644 --- a/plugins/inputs/docker/docker.go +++ b/plugins/inputs/docker/docker.go @@ -395,14 +395,12 @@ func gatherBlockIOMetrics( for _, metric := range blkioStats.IoTimeRecursive { device := fmt.Sprintf("%d:%d", metric.Major, metric.Minor) - field := fmt.Sprintf("io_time_recursive_%s", strings.ToLower(metric.Op)) - deviceStatMap[device][field] = metric.Value + deviceStatMap[device]["io_time_recursive"] = metric.Value } for _, metric := range blkioStats.SectorsRecursive { device := fmt.Sprintf("%d:%d", metric.Major, metric.Minor) - field := fmt.Sprintf("sectors_recursive_%s", strings.ToLower(metric.Op)) - deviceStatMap[device][field] = metric.Value + deviceStatMap[device]["sectors_recursive"] = metric.Value } for device, fields := range deviceStatMap {