mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
don't put dots in key name
This commit is contained in:
parent
f4af82282f
commit
816c9348f6
1 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ module.exports = Metrics =
|
|||
key = this.sanitizeKey(key)
|
||||
if !counters[key]
|
||||
counters[key] = new prom.Counter({
|
||||
name: buildKey(key),
|
||||
name: "#{name}_#{key}",
|
||||
help: key,
|
||||
labelNames: ['name','host']
|
||||
})
|
||||
|
@ -73,7 +73,7 @@ module.exports = Metrics =
|
|||
key = this.sanitizeKey(key)
|
||||
if !gauges[key]
|
||||
gauges[key] = new prom.Gauge({
|
||||
name: buildKey(key),
|
||||
name: "#{name}_#{key}",
|
||||
help: key,
|
||||
labelNames: ['name','host']
|
||||
})
|
||||
|
@ -84,7 +84,7 @@ module.exports = Metrics =
|
|||
key = this.sanitizeKey(key)
|
||||
if !gauges[key]
|
||||
gauges[key] = new prom.Gauge({
|
||||
name: buildKey(key),
|
||||
name: "#{name}_#{key}",
|
||||
help: key,
|
||||
labelNames: ['name','host']
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue