From dfc31032bfafc090bbd572fd410ca52924b2bed6 Mon Sep 17 00:00:00 2001 From: Calvin Date: Fri, 6 Dec 2013 14:39:12 +0800 Subject: [PATCH] =?UTF-8?q?#243=20metrics=20module,=20Graphite=E4=B8=8D?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E6=8A=A5=E5=91=8Arate,=E5=AE=83=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E4=BA=86=E8=87=AA=E8=A1=8C=E8=AE=A1=E7=AE=97=E7=9A=84?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../springside/modules/metrics/report/GraphiteReporter.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/metrics/src/main/java/org/springside/modules/metrics/report/GraphiteReporter.java b/modules/metrics/src/main/java/org/springside/modules/metrics/report/GraphiteReporter.java index aa70d36a..87dd467f 100644 --- a/modules/metrics/src/main/java/org/springside/modules/metrics/report/GraphiteReporter.java +++ b/modules/metrics/src/main/java/org/springside/modules/metrics/report/GraphiteReporter.java @@ -83,8 +83,6 @@ public class GraphiteReporter implements Reporter { private void reportCounter(String name, CounterMetric counter, long timestamp) throws IOException { send(MetricRegistry.name(prefix, name, "count"), format(counter.count), timestamp); - send(MetricRegistry.name(prefix, name, "lastRate"), format(counter.lastRate), timestamp); - send(MetricRegistry.name(prefix, name, "meanRate"), format(counter.meanRate), timestamp); } private void reportHistogram(String name, HistogramMetric histogram, long timestamp) throws IOException { @@ -99,8 +97,6 @@ public class GraphiteReporter implements Reporter { private void reportExecution(String name, ExecutionMetric execution, long timestamp) throws IOException { send(MetricRegistry.name(prefix, name, "count"), format(execution.counter.count), timestamp); - send(MetricRegistry.name(prefix, name, "lastRate"), format(execution.counter.lastRate), timestamp); - send(MetricRegistry.name(prefix, name, "meanRate"), format(execution.counter.meanRate), timestamp); send(MetricRegistry.name(prefix, name, "min"), format(execution.histogram.min), timestamp); send(MetricRegistry.name(prefix, name, "max"), format(execution.histogram.max), timestamp); @@ -184,5 +180,4 @@ public class GraphiteReporter implements Reporter { protected String sanitize(String s) { return WHITESPACE.matcher(s).replaceAll("-"); } - }