diff --git a/backends/graphite.js b/backends/graphite.js index d5b8e2a..1b704c0 100644 --- a/backends/graphite.js +++ b/backends/graphite.js @@ -59,6 +59,7 @@ var flush_stats = function graphite_flush(ts, metrics) { var counters = metrics.counters; var gauges = metrics.gauges; var timers = metrics.timers; + var sets = metrics.sets; var pctThreshold = metrics.pctThreshold; for (key in counters) { @@ -135,6 +136,11 @@ var flush_stats = function graphite_flush(ts, metrics) { numStats += 1; } + for (key in sets) { + statString += 'stats.sets.' + key + '.count ' + sets[key].values().length + ' ' + ts + "\n"; + numStats += 1; + } + statString += 'statsd.numStats ' + numStats + ' ' + ts + "\n"; statString += 'stats.statsd.graphiteStats.calculationtime ' + (Date.now() - starttime) + ' ' + ts + "\n"; post_stats(statString);