Prepend also the app name

This commit is contained in:
Raul Ochoa 2014-10-15 17:16:29 +02:00
parent a248fe5c4b
commit f72c4f28da

2
app.js
View File

@ -82,7 +82,7 @@ ws = CartodbWindshaft(serverOptions);
if (global.statsClient) {
redisPool.on('status', function(status) {
var keyPrefix = 'redis-pool.' + status.name + '.db' + status.db + '.';
var keyPrefix = 'windshaft.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);