Add send count to Integration metrics

Fixed gh-3364
This commit is contained in:
Dave Syer 2015-07-08 16:13:15 +01:00
parent 94e41b4190
commit 7ceb7ce6f6

View File

@ -55,6 +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.addAll(getStatistics(prefix + ".sendRate",
exporter.getChannelSendRate(name)));
metrics.add(new Metric<Long>(prefix + ".receiveCount", exporter