Merge pull request #3532 from izeye/metrics-20150717

* pr/3532:
  Make metric type more sensible
This commit is contained in:
Stephane Nicoll 2015-08-27 14:18:36 +02:00
commit b3c2d1521f
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