don't put dots in key name

This commit is contained in:
Henry Oswald 2018-11-20 16:13:40 +00:00
parent f4af82282f
commit 816c9348f6

View file

@ -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']
})