Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
Fixed deleteGauges configuration option.
Browse files Browse the repository at this point in the history
  • Loading branch information
hectcastro committed May 11, 2013
1 parent 6fea2e5 commit 85689a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -29,6 +29,10 @@ Installs and configures StatsD.
* `node["statsd"]["port"]` - Port to run StatsD on.
* `node["statsd"]["graphite_host"]` - Graphite host.
* `node["statsd"]["graphite_port"]` - Graphite port.
* `node["statsd"]["delete_timers"]` - Don't send values to graphite for
inactive timers (default: `false`).
* `node["statsd"]["delete_gauges"]` - Don't send values to graphite for
inactive gauges (default: `false`).
* `node["statsd"]["graphite"]["legacy_namespace"]` - Flag to use legacy
namespace (default: `true`).
* `node["statsd"]["graphite"]["global_prefix"]` - Global prefix to use for
Expand Down
2 changes: 1 addition & 1 deletion attributes/default.rb
Expand Up @@ -8,7 +8,7 @@
default["statsd"]["graphite_host"] = "localhost"
default["statsd"]["graphite_port"] = 2003
default["statsd"]["delete_timers"] = false
default["statsd"]["delete_gauge"] = false
default["statsd"]["delete_gauges"] = false

# Graphite storage config
default["statsd"]["graphite"]["legacy_namespace"] = true
Expand Down
2 changes: 1 addition & 1 deletion recipes/default.rb
Expand Up @@ -21,7 +21,7 @@
:flush_interval => node["statsd"]["flush_interval"],
:graphite_port => node["statsd"]["graphite_port"],
:graphite_host => node["statsd"]["graphite_host"],
:delete_gauge => node["statsd"]["delete_gauge"],
:delete_gauges => node["statsd"]["delete_gauges"],
:delete_timers => node["statsd"]["delete_timers"],
:legacy_namespace => node["statsd"]["graphite"]["legacy_namespace"],
:global_prefix => node["statsd"]["graphite"]["global_prefix"],
Expand Down
2 changes: 1 addition & 1 deletion templates/default/config.js.erb
Expand Up @@ -4,7 +4,7 @@
"address": "<%= @address %>",
"port": <%= @port %>,
"flushInterval": <%= @flush_interval %>,
"deleteGauge": <%= @delete_gauge %>,
"deleteGauges": <%= @delete_gauges %>,
"deleteTimers": <%= @delete_timers %>,
"graphite": {
"legacyNamespace": <%= @legacy_namespace %>,
Expand Down

0 comments on commit 85689a8

Please sign in to comment.