Преглед на файлове

Add collection into graphite key

James Allen преди 12 години
родител
ревизия
86f220a2d2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      libraries/metrics/mongodb.coffee

+ 1 - 1
libraries/metrics/mongodb.coffee

@@ -20,7 +20,7 @@ module.exports =
 					# Ignore noisy command methods like authenticating, ismaster and ping
 					# Ignore noisy command methods like authenticating, ismaster and ping
 					return _method.call this, db_command, options, callback
 					return _method.call this, db_command, options, callback
 
 
-				key = "mongo-requests.#{type}"
+				key = "mongo-requests.#{collection}.#{type}"
 				if db_command.query?
 				if db_command.query?
 					query = Object.keys(db_command.query).sort().join("_")
 					query = Object.keys(db_command.query).sort().join("_")
 					key += "." + query
 					key += "." + query