andrew@onlab.us
Committed by Gerrit Code Review

Ignore PORT_STATS_UPDATED from topology metrics

Change-Id: I40d796c668700fdb0bf220eb02f2001deb77a4c2
...@@ -193,11 +193,17 @@ public class TopologyMetrics implements TopologyMetricsService { ...@@ -193,11 +193,17 @@ 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 + // Ignore PORT_STATS_UPDATED probe event from interfering with
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 {
196 recordEvent(event, topologyDeviceEventMetric); 201 recordEvent(event, topologyDeviceEventMetric);
197 - log.debug("Device Event: time = {} type = {} event = {}", 202 + log.info("Device Event: time = {} type = {} event = {}",
198 event.time(), event.type(), event); 203 event.time(), event.type(), event);
199 } 204 }
200 } 205 }
206 + }
201 207
202 /** 208 /**
203 * Inner Host Event Listener class. 209 * Inner Host Event Listener class.
......