Explorar el Código

fix gauge usage

Brian Gough hace 6 años
padre
commit
2273978e7b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      libraries/metrics/prom_wrapper.coffee

+ 1 - 1
libraries/metrics/prom_wrapper.coffee

@@ -60,7 +60,7 @@ class MetricWrapper
 					labelNames: ['app', 'host', 'path', 'status_code', 'method', 'collection', 'query']
 				})
 			when "gauge"
-				prom.Gauge({
+				new prom.Gauge({
 					name: name,
 					help: name,
 					labelNames: ['app','host', 'status']