Add a disk stat.

This commit is contained in:
Mark Nellemann 2021-04-26 20:40:09 +02:00
parent 7f98db8a0f
commit 135d41e9cc
2 changed files with 8 additions and 5 deletions

9
.gitignore vendored
View file

@ -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

View file

@ -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));
} }