Permalink
Browse files

Added bind address as an attribute. Removed graphService and batch fr…

…om default configuration.
  • Loading branch information...
1 parent 4b7ac25 commit fd08d3f307dbee7abc1a92a4d6be429106d3282b @hectcastro committed Apr 7, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −0 README.md
  2. +1 −0 attributes/default.rb
  3. +1 −0 recipes/default.rb
  4. +1 −2 templates/default/config.js.erb
View
@@ -20,6 +20,7 @@ Installs and configures StatsD.
* `node["statsd"]["repository"]` - Reference to a StatsD repository.
* `node["statsd"]["log_file"]` - Path to the StatsD log file.
* `node["statsd"]["flush_interval"]` - Flush interval in milliseconds.
+* `node["statsd"]["address"]` - Address to bind StatsD to.
* `node["statsd"]["port"]` - Port to run StatsD on.
* `node["statsd"]["graphite_host"]` - Graphite host.
* `node["statsd"]["graphite_port"]` - Graphite port.
View
@@ -3,6 +3,7 @@
default["statsd"]["repository"] = "git://github.com/etsy/statsd.git"
default["statsd"]["log_file"] = "/var/log/statsd.log"
default["statsd"]["flush_interval"] = 10000
+default["statsd"]["address"] = "0.0.0.0"
default["statsd"]["port"] = 8125
default["statsd"]["graphite_host"] = "localhost"
default["statsd"]["graphite_port"] = 2003
View
@@ -14,6 +14,7 @@
mode "0644"
source "config.js.erb"
variables(
+ :address => node["statsd"]["address"],
:port => node["statsd"]["port"],
:flush_interval => node["statsd"]["flush_interval"],
:graphite_port => node["statsd"]["graphite_port"],
@@ -1,8 +1,7 @@
{
- "graphService": "graphite",
"graphitePort": <%= @graphite_port %>,
"graphiteHost": "<%= @graphite_host %>",
- "batch": 200,
+ "address": "<%= @address %>",
"port": <%= @port %>,
"flushInterval": <%= @flush_interval %>
}

0 comments on commit fd08d3f

Please sign in to comment.