 buildGlobalKey = (key)-> "#{name}.global.#{key}"
 
 counters = {}
+gauges = {}
 
 destructors = []
 


	gauge : (key, value, sampleRate = 1)->
		statsd.gauge buildKey(key), value, sampleRate

	globalGauge: (key, value, sampleRate = 1)->
		statsd.gauge buildGlobalKey(key), value, sampleRate

	mongodb: require "./mongodb"
	http: require "./http"

	inc : (key, sampleRate = 1)->
		statsd.increment buildKey(key), sampleRate
		if !counters[key]
			counters[key] = new prom.Counter({
		  		name: key,
				help: key, 
				labelNames: ['name','host']
			})
		counters[key].inc({name: name, host: hostname})
