Added IopsInProgress to diskio stats (#2037)
* Export IopsInProgress * Export IopsInProgress * Export IopsInProgress
This commit is contained in:
parent
196509cc53
commit
81004c808f
|
@ -131,13 +131,14 @@ func (s *DiskIOStats) Gather(acc telegraf.Accumulator) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
fields := map[string]interface{}{
|
fields := map[string]interface{}{
|
||||||
"reads": io.ReadCount,
|
"reads": io.ReadCount,
|
||||||
"writes": io.WriteCount,
|
"writes": io.WriteCount,
|
||||||
"read_bytes": io.ReadBytes,
|
"read_bytes": io.ReadBytes,
|
||||||
"write_bytes": io.WriteBytes,
|
"write_bytes": io.WriteBytes,
|
||||||
"read_time": io.ReadTime,
|
"read_time": io.ReadTime,
|
||||||
"write_time": io.WriteTime,
|
"write_time": io.WriteTime,
|
||||||
"io_time": io.IoTime,
|
"io_time": io.IoTime,
|
||||||
|
"iops_in_progress": io.IopsInProgress,
|
||||||
}
|
}
|
||||||
acc.AddCounter("diskio", fields, tags)
|
acc.AddCounter("diskio", fields, tags)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue