From 1ab5e526993423367ecbc1ad3df2c252d4e90689 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 21 Mar 2019 15:52:53 +0000 Subject: [PATCH] down-sample valid events by 1000 --- services/real-time/app/coffee/EventLogger.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/real-time/app/coffee/EventLogger.coffee b/services/real-time/app/coffee/EventLogger.coffee index 9a52ccb842..cf412c1904 100644 --- a/services/real-time/app/coffee/EventLogger.coffee +++ b/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"