Committed by
Gerrit Code Review
Ignore PORT_STATS_UPDATED from topology metrics
Change-Id: I40d796c668700fdb0bf220eb02f2001deb77a4c2
Showing
1 changed file
with
8 additions
and
2 deletions
... | @@ -193,9 +193,15 @@ public class TopologyMetrics implements TopologyMetricsService { | ... | @@ -193,9 +193,15 @@ public class TopologyMetrics implements TopologyMetricsService { |
193 | private class InnerDeviceListener implements DeviceListener { | 193 | private class InnerDeviceListener implements DeviceListener { |
194 | @Override | 194 | @Override |
195 | public void event(DeviceEvent event) { | 195 | public void event(DeviceEvent event) { |
196 | - recordEvent(event, topologyDeviceEventMetric); | 196 | + // Ignore PORT_STATS_UPDATED probe event from interfering with |
197 | - log.debug("Device Event: time = {} type = {} event = {}", | 197 | + // other device event timestamps |
198 | + if (event.type() == DeviceEvent.Type.PORT_STATS_UPDATED) { | ||
199 | + log.info("PORT_STATS_UPDATED event ignored from metrics"); | ||
200 | + } else { | ||
201 | + recordEvent(event, topologyDeviceEventMetric); | ||
202 | + log.info("Device Event: time = {} type = {} event = {}", | ||
198 | event.time(), event.type(), event); | 203 | event.time(), event.type(), event); |
204 | + } | ||
199 | } | 205 | } |
200 | } | 206 | } |
201 | 207 | ... | ... |
-
Please register or login to post a comment