Set statsd to delete idle counters/timers

In the default configuration, statsd emits 0 values for every known
counter, timer, and guage for every interval.  In our system, we
have a lot of sparsely updated timers and counters -- those
associated with a job -- so the longer statsd runs, the more 0
metrics it constantly emits.

Many of these metrics are null much of the time anyway -- each time
statsd restarts it forgets all of these metrics and so the databases
will have nulls until it sees a metric anyway.

This change tells statsd not to send 0 values for timecs and counters
that have not reported during the update interval.

Guages will still report their last value.

Change-Id: I87c85f82f6d38506977bc9bf26d34f6e66746b01
This commit is contained in:
James E. Blair 2015-11-17 11:03:54 -08:00
parent 395b5ad315
commit 933b580fd6
1 changed files with 2 additions and 0 deletions

View File

@ -54,4 +54,6 @@ Optional Variables:
graphitePort: 2003
, graphiteHost: "127.0.0.1"
, port: 8125
, deleteTimers: true
, deleteCounters: true
}