From ef9e97e7d1fcaf2bee9cf2ffdc5d2d754e3fe736 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 11 Apr 2019 15:39:28 +0100 Subject: [PATCH] add metric for applied-ops events --- services/real-time/app/coffee/DocumentUpdaterController.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/services/real-time/app/coffee/DocumentUpdaterController.coffee b/services/real-time/app/coffee/DocumentUpdaterController.coffee index 209af3c0bf..c4367cd652 100644 --- a/services/real-time/app/coffee/DocumentUpdaterController.coffee +++ b/services/real-time/app/coffee/DocumentUpdaterController.coffee @@ -15,6 +15,7 @@ module.exports = DocumentUpdaterController = listenForUpdatesFromDocumentUpdater: (io) -> rclient.subscribe "applied-ops" rclient.on "message", (channel, message) -> + metrics.inc "rclient", 0.001 # global event rate metric EventLogger.debugEvent(channel, message) if settings.debugEvents > 0 DocumentUpdaterController._processMessageFromDocumentUpdater(io, channel, message)