Make metric type more sensible

Closes gh-3532
This commit is contained in:
izeye 2015-07-17 10:29:33 +09:00 committed by Stephane Nicoll
parent 2c619232b3
commit 3ec97c1bb9
1 changed files with 4 additions and 4 deletions

View File

@ -55,8 +55,8 @@ public class SpringIntegrationMetricReader implements MetricReader {
String prefix = "integration.channel." + name;
metrics.addAll(getStatistics(prefix + ".errorRate",
exporter.getChannelErrorRate(name)));
metrics.add(new Metric<Integer>(prefix + ".sendCount", exporter
.getChannelSendCount(name)));
metrics.add(new Metric<Long>(prefix + ".sendCount", exporter
.getChannelSendCountLong(name)));
metrics.addAll(getStatistics(prefix + ".sendRate",
exporter.getChannelSendRate(name)));
metrics.add(new Metric<Long>(prefix + ".receiveCount", exporter
@ -66,8 +66,8 @@ public class SpringIntegrationMetricReader implements MetricReader {
metrics.addAll(getStatistics("integration.handler." + name + ".duration",
exporter.getHandlerDuration(name)));
}
metrics.add(new Metric<Long>("integration.activeHandlerCount", exporter
.getActiveHandlerCountLong()));
metrics.add(new Metric<Integer>("integration.activeHandlerCount", exporter
.getActiveHandlerCount()));
metrics.add(new Metric<Integer>("integration.handlerCount", exporter
.getHandlerCount()));
metrics.add(new Metric<Integer>("integration.channelCount", exporter