Add a disk stat.
This commit is contained in:
parent
7f98db8a0f
commit
135d41e9cc
9
.gitignore
vendored
9
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
|||
# Ignore Gradle project-specific cache directory
|
||||
.gradle
|
||||
.idea
|
||||
|
||||
# Ignore Gradle build output directory
|
||||
.settings
|
||||
.classpath
|
||||
.project
|
||||
.gradle
|
||||
build
|
||||
bin
|
||||
|
|
|
@ -78,8 +78,10 @@ public class DiskBean implements MetricBean {
|
|||
continue;
|
||||
}
|
||||
|
||||
long timeSpendDoingIo = curStat.timeSpentOnIo - preStat.timeSpentOnIo;
|
||||
|
||||
// TODO: Calculate differences for wanted disk io stats
|
||||
measurementList.add(new MetricMeasurement(curStat.getDevice(), 0));
|
||||
measurementList.add(new MetricMeasurement(curStat.getDevice() + "-iotime", timeSpendDoingIo));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue