Cleanup logging.

This commit is contained in:
Mark Nellemann 2021-05-28 20:35:27 +02:00
parent 0973c974ac
commit 25e3640790

View file

@ -90,11 +90,13 @@ public class BaseProcessorExtension implements MetricExtension {
long nonBusy = idle + iowait; long nonBusy = idle + iowait;
long total = busy + nonBusy; long total = busy + nonBusy;
/*
log.info("idle: " + idle); log.info("idle: " + idle);
log.info("iowait: " + iowait); log.info("iowait: " + iowait);
log.info("busy: " + busy); log.info("busy: " + busy);
log.info("nonBusy: " + nonBusy); log.info("nonBusy: " + nonBusy);
log.info("total: " + total); log.info("total: " + total);
*/
fieldsMap.put("user", (float) user / (float) total); fieldsMap.put("user", (float) user / (float) total);
fieldsMap.put("iowait", (float) iowait / (float) total); fieldsMap.put("iowait", (float) iowait / (float) total);
@ -102,7 +104,7 @@ public class BaseProcessorExtension implements MetricExtension {
fieldsMap.put("busy", (float) busy / (float) total); fieldsMap.put("busy", (float) busy / (float) total);
fieldsMap.put("system", (float) system / (float) total); fieldsMap.put("system", (float) system / (float) total);
log.info(fieldsMap.toString()); //log.info(fieldsMap.toString());
return new MetricResult("processor", new Measurement(tagsMap, fieldsMap)); return new MetricResult("processor", new Measurement(tagsMap, fieldsMap));
} }