add metric for applied-ops events

This commit is contained in:
Brian Gough 2019-04-11 15:39:28 +01:00
parent 01a1923e1f
commit ef9e97e7d1

View file

@ -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)