Permalink
Browse files

Adding global suffixes

  • Loading branch information...
1 parent 5dfa47b commit d180c222a6ca72cbd970acd01dbb76d703a3852f Jakob Jülich committed with May 8, 2014
Showing with 6 additions and 1 deletion.
  1. +2 −0 README.md
  2. +1 −0 attributes/default.rb
  3. +2 −1 recipes/default.rb
  4. +1 −0 templates/default/config.js.erb
View
@@ -52,6 +52,8 @@ Installs and configures StatsD.
namespace (default: `true`).
* `node["statsd"]["graphite"]["global_prefix"]` - Global prefix to use for
sending stats to Graphite (default: `stats`).
+* `node["statsd"]["graphite"]["global_suffix"]` - Global suffix to use for
+ sending stats to Graphite (default: ``).
* `node["statsd"]["graphite"]["prefix_counter"]` - Graphite prefix for counter
metrics (default: `counters`).
* `node["statsd"]["graphite"]["prefix_timer"]` - Graphite prefix for timer
@@ -21,6 +21,7 @@
# Graphite storage config
default["statsd"]["graphite"]["legacy_namespace"] = true
default["statsd"]["graphite"]["global_prefix"] = "stats"
+default["statsd"]["graphite"]["global_suffix"] = ""
default["statsd"]["graphite"]["prefix_counter"] = "counters"
default["statsd"]["graphite"]["prefix_timer"] = "timers"
default["statsd"]["graphite"]["prefix_gauge"] = "gauges"
View
@@ -40,6 +40,7 @@
:delete_counters => node["statsd"]["delete_counters"],
:legacy_namespace => node["statsd"]["graphite"]["legacy_namespace"],
:global_prefix => node["statsd"]["graphite"]["global_prefix"],
+ :global_suffix => node["statsd"]["graphite"]["global_suffix"],
:prefix_counter => node["statsd"]["graphite"]["prefix_counter"],
:prefix_timer => node["statsd"]["graphite"]["prefix_timer"],
:prefix_gauge => node["statsd"]["graphite"]["prefix_gauge"],
@@ -61,6 +62,6 @@
:user => node['statsd']['username'],
:statsd_dir => node['statsd']['dir'],
:conf_dir => node['statsd']['conf_dir'],
- :nodejs_dir => node['nodejs']['dir']
+ :nodejs_dir => node['nodejs']['dir']
})
end
@@ -13,6 +13,7 @@
"graphite": {
"legacyNamespace": <%= @legacy_namespace %>,
"globalPrefix": "<%= @global_prefix %>",
+ "globalSuffix": "<%= @global_suffix %>",
"prefixCounter": "<%= @prefix_counter %>",
"prefixTimer": "<%= @prefix_timer %>",
"prefixGauge": "<%= @prefix_gauge %>",

0 comments on commit d180c22

Please sign in to comment.