Prepend redis-pool in statsd key for redis-mpool status

This commit is contained in:
Raul Ochoa 2014-10-15 17:08:56 +02:00
parent e9495ccd84
commit a248fe5c4b

2
app.js
View File

@ -82,7 +82,7 @@ ws = CartodbWindshaft(serverOptions);
if (global.statsClient) {
redisPool.on('status', function(status) {
var keyPrefix = status.name + '.db' + status.db + '.';
var keyPrefix = 'redis-pool.' + status.name + '.db' + status.db + '.';
global.statsClient.gauge(keyPrefix + 'count', status.count);
global.statsClient.gauge(keyPrefix + 'unused', status.unused);
global.statsClient.gauge(keyPrefix + 'waiting', status.waiting);