From 25e36407903e11748fb95bbc9c2af3206df533e4 Mon Sep 17 00:00:00 2001 From: Mark Nellemann Date: Fri, 28 May 2021 20:35:27 +0200 Subject: [PATCH] Cleanup logging. --- .../java/sysmon/plugins/os_base/BaseProcessorExtension.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/os-base/src/main/java/sysmon/plugins/os_base/BaseProcessorExtension.java b/plugins/os-base/src/main/java/sysmon/plugins/os_base/BaseProcessorExtension.java index ee47348..ce3c800 100644 --- a/plugins/os-base/src/main/java/sysmon/plugins/os_base/BaseProcessorExtension.java +++ b/plugins/os-base/src/main/java/sysmon/plugins/os_base/BaseProcessorExtension.java @@ -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)); }