зеркало из https://github.com/microsoft/statsd.git
add a bit more debug output - sets, numStats
This commit is contained in:
Родитель
3392f73e58
Коммит
9fef3161f4
|
@ -137,8 +137,11 @@ var flush_stats = function graphite_flush(ts, metrics) {
|
|||
statString += the_key.join(".") + ' ' + statsd_metrics[key] + ts_suffix;
|
||||
}
|
||||
}
|
||||
|
||||
post_stats(statString);
|
||||
// lets debug log a few of our metrics
|
||||
if (debug) {
|
||||
util.log("DEBUG: numStats: " + numStats);
|
||||
}
|
||||
};
|
||||
|
||||
var backend_status = function graphite_status(writeCb) {
|
||||
|
|
3
stats.js
3
stats.js
|
@ -110,8 +110,9 @@ config.configFile(process.argv[2], function (config, oldConfig) {
|
|||
clearInterval(debugInt);
|
||||
}
|
||||
debugInt = setInterval(function () {
|
||||
l.log("Counters:\n" + util.inspect(counters) +
|
||||
l.log("\nCounters:\n" + util.inspect(counters) +
|
||||
"\nTimers:\n" + util.inspect(timers) +
|
||||
"\nSets:\n" + util.inspect(sets) +
|
||||
"\nGauges:\n" + util.inspect(gauges), 'debug');
|
||||
}, config.debugInterval || 10000);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче