Prepend redis-pool in statsd key for redis-mpool status
This commit is contained in:
parent
e9495ccd84
commit
a248fe5c4b
2
app.js
2
app.js
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user