#243 metrics module, Graphite不需要报告rate,它提供了自行计算的函数
This commit is contained in:
-5
@@ -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("-");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user