mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 09:53:19 +00:00
Merge pull request #16 from sharelatex/csh-metrics-register-public
metrics 2.0.13
This commit is contained in:
commit
d95908756f
2 changed files with 3 additions and 1 deletions
libraries/metrics
|
@ -1,5 +1,6 @@
|
|||
prom = require('prom-client')
|
||||
Register = require('prom-client').register
|
||||
|
||||
collectDefaultMetrics = prom.collectDefaultMetrics
|
||||
|
||||
appname = "unknown"
|
||||
|
@ -15,6 +16,7 @@ destructors = []
|
|||
require "./uv_threadpool_size"
|
||||
|
||||
module.exports = Metrics =
|
||||
register:Register
|
||||
initialize: (_name) ->
|
||||
appname = _name
|
||||
collectDefaultMetrics({ timeout: 5000, prefix: Metrics.buildPromKey()})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "metrics-sharelatex",
|
||||
"version": "2.0.12",
|
||||
"version": "2.0.13",
|
||||
"description": "A drop-in metrics and monitoring module for node.js apps",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Add table
Reference in a new issue