 
 	injectMetricsRoute: (app) ->
 		app.get('/metrics', (req, res) -> 
-			res.set('Content-Type', Register.contentType)
-			res.end(Register.metrics())
+			res.set('Content-Type', register.contentType)
+			res.end(register.metrics())
 		)
 
 	buildPromKey: (key = "")->

require "./uv_threadpool_size"

module.exports = Metrics =
	initialize: (_name) ->
		appname = _name
		collectDefaultMetrics({ timeout: 5000, prefix: Metrics.buildPromKey()})

prom = require('prom-client')

collectDefaultMetrics = prom.collectDefaultMetrics

appname = "unknown"
