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
|
.idea
|
||||||
|
.settings
|
||||||
# Ignore Gradle build output directory
|
.classpath
|
||||||
|
.project
|
||||||
|
.gradle
|
||||||
build
|
build
|
||||||
|
bin
|
||||||
|
|
|
@ -78,8 +78,10 @@ public class DiskBean implements MetricBean {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long timeSpendDoingIo = curStat.timeSpentOnIo - preStat.timeSpentOnIo;
|
||||||
|
|
||||||
// TODO: Calculate differences for wanted disk io stats
|
// 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