Update metrics.coffee

This commit is contained in:
Henry Oswald 2018-11-20 13:50:04 +00:00 committed by GitHub
parent 65fccf8abe
commit c576a86c14

View file

@ -21,7 +21,7 @@ require "./uv_threadpool_size"
module.exports = Metrics = module.exports = Metrics =
initialize: (_name) -> initialize: (_name) ->
name = _name name = _name
collectDefaultMetrics({ timeout: 5000, prefix: name }) collectDefaultMetrics({ timeout: 5000, prefix: name + "_" })
registerDestructor: (func) -> registerDestructor: (func) ->
destructors.push func destructors.push func