Cleanup logging.

This commit is contained in:
Mark Nellemann 2021-05-28 20:35:27 +02:00
parent 0973c974ac
commit 25e3640790
1 changed files with 3 additions and 1 deletions

View File

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