diff options
author | valerijf <valerijf@yahoo-inc.com> | 2017-03-22 09:44:32 +0100 |
---|---|---|
committer | valerijf <valerijf@yahoo-inc.com> | 2017-03-22 09:44:32 +0100 |
commit | 744088eaa400497eebc1b22b38a1cadf4d33f3c2 (patch) | |
tree | 9dc08c6a822cb4ec12ee66188df8c1d218f50825 /node-admin | |
parent | 80aa8c2c577a3651c8683fe13175647414c5b01d (diff) |
Remove debug logging added in #2038
Diffstat (limited to 'node-admin')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java index 60987501d4b..aa6f762543f 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java @@ -508,21 +508,14 @@ public class NodeAgentImpl implements NodeAgent { @SuppressWarnings("unchecked") public void updateContainerNodeMetrics(int numAllocatedContainersOnHost) { - logger.debug("Gathering metrics"); ContainerNodeSpec nodeSpec; synchronized (monitor) { nodeSpec = lastNodeSpec; } - if (nodeSpec == null || !vespaVersion.isPresent()) { - logger.debug("Not updating container metrics, nodeSpec=" + nodeSpec + ", vespaVersion=" + vespaVersion); - return; - } + if (nodeSpec == null || !vespaVersion.isPresent()) return; Optional<Docker.ContainerStats> containerStats = dockerOperations.getContainerStats(containerName); - if ( ! containerStats.isPresent()) { - logger.debug("Failed to get docker stats from daemon"); - return; - } + if ( ! containerStats.isPresent()) return; Docker.ContainerStats stats = containerStats.get(); Dimensions.Builder dimensionsBuilder = new Dimensions.Builder() @@ -558,7 +551,6 @@ public class NodeAgentImpl implements NodeAgent { double cpuPercentageOfHost = lastCpuMetric.getCpuUsagePercentage(currentCpuContainerTotalTime, currentCpuSystemTotalTime); double cpuPercentageOfAllocated = numAllocatedContainersOnHost * cpuPercentageOfHost; metricReceiver.declareGauge(MetricReceiverWrapper.APPLICATION_DOCKER, dimensions, "node.cpu.busy.pct").sample(cpuPercentageOfAllocated); - logger.debug("Updated CPU busy metric with: " + cpuPercentageOfAllocated); addIfNotNull(dimensions, "node.cpu.throttled_time", stats.getCpuStats().get("throttling_data"), "throttled_time"); addIfNotNull(dimensions, "node.memory.limit", stats.getMemoryStats(), "limit"); |