From 81004c808fdc05b8b988cd9179fd38e4678c41da Mon Sep 17 00:00:00 2001 From: leplan73 Date: Wed, 16 Nov 2016 14:16:16 +0100 Subject: [PATCH] Added IopsInProgress to diskio stats (#2037) * Export IopsInProgress * Export IopsInProgress * Export IopsInProgress --- plugins/inputs/system/disk.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/plugins/inputs/system/disk.go b/plugins/inputs/system/disk.go index e686a442d..4f18a4b14 100644 --- a/plugins/inputs/system/disk.go +++ b/plugins/inputs/system/disk.go @@ -131,13 +131,14 @@ func (s *DiskIOStats) Gather(acc telegraf.Accumulator) error { } fields := map[string]interface{}{ - "reads": io.ReadCount, - "writes": io.WriteCount, - "read_bytes": io.ReadBytes, - "write_bytes": io.WriteBytes, - "read_time": io.ReadTime, - "write_time": io.WriteTime, - "io_time": io.IoTime, + "reads": io.ReadCount, + "writes": io.WriteCount, + "read_bytes": io.ReadBytes, + "write_bytes": io.WriteBytes, + "read_time": io.ReadTime, + "write_time": io.WriteTime, + "io_time": io.IoTime, + "iops_in_progress": io.IopsInProgress, } acc.AddCounter("diskio", fields, tags) }