Permalink
Browse files

Merge pull request #30 from tildedave/enable_dump_messages_as_part_of…

…_configuration

Allow configuring dumpMessages through node attribute.
  • Loading branch information...
2 parents 379b126 + fdaa006 commit 809b0872f6d92538bc0bfc10e96ff9ff86cb266e @hectcastro committed Mar 13, 2014
Showing with 5 additions and 2 deletions.
  1. +1 −0 attributes/default.rb
  2. +2 −1 recipes/default.rb
  3. +2 −1 templates/default/config.js.erb
View
1 attributes/default.rb
@@ -16,6 +16,7 @@
default["statsd"]["delete_sets"] = false
default["statsd"]["delete_counters"] = false
default["statsd"]["username"] = "statsd"
+default["statsd"]["dump_messages"] = false
# Graphite storage config
default["statsd"]["graphite"]["legacy_namespace"] = true
View
3 recipes/default.rb
@@ -43,7 +43,8 @@
:prefix_counter => node["statsd"]["graphite"]["prefix_counter"],
:prefix_timer => node["statsd"]["graphite"]["prefix_timer"],
:prefix_gauge => node["statsd"]["graphite"]["prefix_gauge"],
- :prefix_set => node["statsd"]["graphite"]["prefix_set"]
+ :prefix_set => node["statsd"]["graphite"]["prefix_set"],
+ :dump_messages => node["statsd"]["dump_messages"]
)
notifies :restart, "service[statsd]", :delayed
end
View
3 templates/default/config.js.erb
@@ -17,5 +17,6 @@
"prefixTimer": "<%= @prefix_timer %>",
"prefixGauge": "<%= @prefix_gauge %>",
"prefixSet": "<%= @prefix_set %>"
- }
+ },
+ "dumpMessages": "<%= @dump_messages %>"
}

0 comments on commit 809b087

Please sign in to comment.