From 86f220a2d278c88f0733bdfa5456e43d4982e74d Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 7 May 2014 11:50:09 +0100 Subject: [PATCH] Add collection into graphite key --- libraries/metrics/mongodb.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/metrics/mongodb.coffee b/libraries/metrics/mongodb.coffee index cf8710ccf9..71529434db 100644 --- a/libraries/metrics/mongodb.coffee +++ b/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