Skip to content
Browse files

using metrics timers in console.js instead of the metricsCache

  • Loading branch information...
1 parent a11359d commit f35cfd919a216c0be814e9c8c7f0775ea678ea6c @vireshas committed Mar 22, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 backends/console.js
  2. +2 −2 exampleConfig.js → config.js
View
4 backends/console.js
@@ -8,7 +8,7 @@ function ConsoleBackend(startupTime, config, emitter){
this.statsCache = {
counters: {},
- timers: {}
+ //timers: {}
};
// attach
@@ -32,7 +32,7 @@ ConsoleBackend.prototype.flush = function(timestamp, metrics) {
var out = {
counters: this.statsCache.counters,
- timers: this.statsCache.timers,
+ timers: metrics.timers,
gauges: metrics.gauges,
timer_data: metrics.timer_data,
counter_rates: metrics.counter_rates,
View
4 exampleConfig.js → config.js
@@ -88,7 +88,7 @@ Optional Variables:
*/
{
graphitePort: 2003
-, graphiteHost: "graphite.example.com"
+, graphiteHost: "localhost"
, port: 8125
-, backends: [ "./backends/graphite" ]
+, backends: [ "./backends/graphite", "./backends/console" ]
}

0 comments on commit f35cfd9

Please sign in to comment.
Something went wrong with that request. Please try again.