Просмотр исходного кода

Add collection into graphite key

James Allen 12 лет назад
Родитель
Сommit
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
 					return _method.call this, db_command, options, callback
 
-				key = "mongo-requests.#{type}"
+				key = "mongo-requests.#{collection}.#{type}"
 				if db_command.query?
 					query = Object.keys(db_command.query).sort().join("_")
 					key += "." + query