Skip to content

Loading…

Support the 'percentThreshold' option #24

Merged
merged 1 commit into from

2 participants

@kppullin

Added support for the statsd 'percentThreshold' option.

From https://github.com/etsy/statsd/blob/master/exampleConfig.js :

percentThreshold: for time information, calculate the Nth percentile(s)
(can be a single value or list of floating-point values)
negative values mean to use "top" Nth percentile(s) values
[%, default: 90]

@hectcastro hectcastro merged commit f487ea3 into hectcastro:master

1 check passed

Details default The Travis CI build passed
@hectcastro
Owner

Thanks, @kppullin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 7, 2013
  1. Support the 'percentThreshold' option

    kppullin committed
Showing with 4 additions and 0 deletions.
  1. +1 −0 README.md
  2. +1 −0 attributes/default.rb
  3. +1 −0 recipes/default.rb
  4. +1 −0 templates/default/config.js.erb
View
1 README.md
@@ -26,6 +26,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"]["percent_threshold"]` - Nth percentile value(s). Single value or array.
* `node["statsd"]["address"]` - Address to bind StatsD to.
* `node["statsd"]["port"]` - Port to run StatsD on.
* `node["statsd"]["graphite_host"]` - Graphite host.
View
1 attributes/default.rb
@@ -2,6 +2,7 @@
default["statsd"]["conf_dir"] = "/etc/statsd"
default["statsd"]["repository"] = "git://github.com/etsy/statsd.git"
default["statsd"]["flush_interval"] = 10000
+default["statsd"]["percent_threshold"] = "90"
default["statsd"]["address"] = "0.0.0.0"
default["statsd"]["port"] = 8125
default["statsd"]["graphite_host"] = "127.0.0.1"
View
1 recipes/default.rb
@@ -29,6 +29,7 @@
:address => node["statsd"]["address"],
:port => node["statsd"]["port"],
:flush_interval => node["statsd"]["flush_interval"],
+ :percent_threshold => node["statsd"]["percent_threshold"],
:graphite_port => node["statsd"]["graphite_port"],
:graphite_host => graphite_host,
:delete_idle_stats => node["statsd"]["delete_idle_stats"],
View
1 templates/default/config.js.erb
@@ -4,6 +4,7 @@
"address": "<%= @address %>",
"port": <%= @port %>,
"flushInterval": <%= @flush_interval %>,
+ "percentThreshold": <%= @percent_threshold %>,
"deleteIdleStats": <%= @delete_idle_stats %>,
"deleteGauges": <%= @delete_gauges %>,
"deleteTimers": <%= @delete_timers %>,
Something went wrong with that request. Please try again.