Commit 7ceb7ce6 authored by Dave Syer's avatar Dave Syer

Add send count to Integration metrics

Fixed gh-3364
parent 94e41b41
...@@ -55,6 +55,8 @@ public class SpringIntegrationMetricReader implements MetricReader { ...@@ -55,6 +55,8 @@ public class SpringIntegrationMetricReader implements MetricReader {
String prefix = "integration.channel." + name; String prefix = "integration.channel." + name;
metrics.addAll(getStatistics(prefix + ".errorRate", metrics.addAll(getStatistics(prefix + ".errorRate",
exporter.getChannelErrorRate(name))); exporter.getChannelErrorRate(name)));
metrics.add(new Metric<Integer>(prefix + ".sendCount", exporter
.getChannelSendCount(name)));
metrics.addAll(getStatistics(prefix + ".sendRate", metrics.addAll(getStatistics(prefix + ".sendRate",
exporter.getChannelSendRate(name))); exporter.getChannelSendRate(name)));
metrics.add(new Metric<Long>(prefix + ".receiveCount", exporter metrics.add(new Metric<Long>(prefix + ".receiveCount", exporter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment