Add collection into graphite key

This commit is contained in:
James Allen 2014-05-07 11:50:09 +01:00
parent 45ec60d8a6
commit 86f220a2d2

View file

@ -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