mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add host label to timing metrics
This commit is contained in:
parent
425a6f55ff
commit
61e6cf0493
1 changed files with 2 additions and 1 deletions
|
@ -86,9 +86,10 @@ module.exports = Metrics =
|
|||
help: key,
|
||||
maxAgeSeconds: 600,
|
||||
ageBuckets: 10,
|
||||
labelNames: ['app', 'path', 'status_code', 'method', 'collection', 'query']
|
||||
labelNames: ['app', 'host', 'path', 'status_code', 'method', 'collection', 'query']
|
||||
})
|
||||
opts.app = appname
|
||||
opts.host = hostname
|
||||
promMetrics[key].observe(opts, timeSpan)
|
||||
if process.env['DEBUG_METRICS']
|
||||
console.log("doing timing", key, opts)
|
||||
|
|
Loading…
Reference in a new issue