mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 12:41:06 -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')
|
prom = require('prom-client')
|
||||||
|
Register = require('prom-client').register
|
||||||
|
|
||||||
collectDefaultMetrics = prom.collectDefaultMetrics
|
collectDefaultMetrics = prom.collectDefaultMetrics
|
||||||
|
|
||||||
|
@ -15,7 +16,7 @@ destructors = []
|
||||||
require "./uv_threadpool_size"
|
require "./uv_threadpool_size"
|
||||||
|
|
||||||
module.exports = Metrics =
|
module.exports = Metrics =
|
||||||
register: require('prom-client').register
|
register:Register
|
||||||
initialize: (_name) ->
|
initialize: (_name) ->
|
||||||
appname = _name
|
appname = _name
|
||||||
collectDefaultMetrics({ timeout: 5000, prefix: Metrics.buildPromKey()})
|
collectDefaultMetrics({ timeout: 5000, prefix: Metrics.buildPromKey()})
|
||||||
|
|
Loading…
Reference in a new issue