Sfoglia il codice sorgente

down-sample valid events by 1000

Brian Gough 7 anni fa
parent
commit
1ab5e52699
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      services/real-time/app/coffee/EventLogger.coffee

+ 1 - 1
services/real-time/app/coffee/EventLogger.coffee

@@ -21,7 +21,7 @@ module.exports = EventLogger =
 		# store the last count in a hash for each host
 		previous = EventLogger._storeEventCount(key, count)
 		if !previous? || count == (previous + 1)
-			metrics.inc "event.#{channel}.valid"
+			metrics.inc "event.#{channel}.valid", 0.001
 			return # order is ok
 		if (count == previous)
 			metrics.inc "event.#{channel}.duplicate"