mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 00:05:27 -05:00
Merge pull request #14 from sharelatex/csh-add-host-label
Add host label to timing metrics
This commit is contained in:
commit
299f132bd7
2 changed files with 3 additions and 2 deletions
|
@ -86,9 +86,10 @@ module.exports = Metrics =
|
||||||
help: key,
|
help: key,
|
||||||
maxAgeSeconds: 600,
|
maxAgeSeconds: 600,
|
||||||
ageBuckets: 10,
|
ageBuckets: 10,
|
||||||
labelNames: ['app', 'path', 'status_code', 'method', 'collection', 'query']
|
labelNames: ['app', 'host', 'path', 'status_code', 'method', 'collection', 'query']
|
||||||
})
|
})
|
||||||
opts.app = appname
|
opts.app = appname
|
||||||
|
opts.host = hostname
|
||||||
promMetrics[key].observe(opts, timeSpan)
|
promMetrics[key].observe(opts, timeSpan)
|
||||||
if process.env['DEBUG_METRICS']
|
if process.env['DEBUG_METRICS']
|
||||||
console.log("doing timing", key, opts)
|
console.log("doing timing", key, opts)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "metrics-sharelatex",
|
"name": "metrics-sharelatex",
|
||||||
"version": "2.0.9",
|
"version": "2.0.10",
|
||||||
"description": "A drop-in metrics and monitoring module for node.js apps",
|
"description": "A drop-in metrics and monitoring module for node.js apps",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in a new issue