Cleanup logging.
This commit is contained in:
parent
0973c974ac
commit
25e3640790
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue