Fix Register

This commit is contained in:
Christopher Hoskin 2019-01-15 16:12:15 +00:00
parent d4caa48118
commit 20e45b7a2e

View file

@ -1,4 +1,5 @@
prom = require('prom-client')
Register = require('prom-client').register
collectDefaultMetrics = prom.collectDefaultMetrics
@ -15,7 +16,7 @@ destructors = []
require "./uv_threadpool_size"
module.exports = Metrics =
register: require('prom-client').register
register:Register
initialize: (_name) ->
appname = _name
collectDefaultMetrics({ timeout: 5000, prefix: Metrics.buildPromKey()})