mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix Register
This commit is contained in:
parent
d4caa48118
commit
20e45b7a2e
1 changed files with 2 additions and 1 deletions
|
@ -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()})
|
||||
|
|
Loading…
Reference in a new issue