Skip to content

Commit

Permalink
Merge pull request statsd#17 from jcsalterego/master
Browse files Browse the repository at this point in the history
README and exampleConfig.js Updates
  • Loading branch information
ickymettle committed Nov 18, 2011
2 parents 38af5cf + 99b8a15 commit 67b8386
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
14 changes: 12 additions & 2 deletions README.md
Expand Up @@ -23,15 +23,15 @@ Counting

gorets:1|c

This is a simple counter. Add 1 to the "gorets" bucket. It stays in memory until the flush interval.
This is a simple counter. Add 1 to the "gorets" bucket. It stays in memory until the flush interval `config.flushInterval`.


Timing
------

glork:320|ms

The glork took 320ms to complete this time. StatsD figures out 90th percentile, average (mean), lower and upper bounds for the flush interval.
The glork took 320ms to complete this time. StatsD figures out 90th percentile, average (mean), lower and upper bounds for the flush interval. The percentile threshold can be tweaked with `config.percentThreshold`.

Sampling
--------
Expand All @@ -40,6 +40,16 @@ Sampling

Tells StatsD that this counter is being sent sampled every 1/10th of the time.

Debugging
---------

There are additional config variables available for debugging:

* `debug` - log exceptions and periodically print out information on counters and timers
* `debugInterval` - interval for printing out information on counters and timers
* `dumpMessages` - print debug info on incoming messages

For more information, check the `exampleConfig.js`.

Guts
----
Expand Down
19 changes: 18 additions & 1 deletion exampleConfig.js
@@ -1,6 +1,23 @@
/*
Required Variables:
graphiteHost: hostname or IP of Graphite server
graphitePort: port of Graphite server
port: StatsD listening port [default: 8125]
Optional Variables:
debug: debug flag [default: false]
debugInterval: interval to print debug information [ms, default: 10000]
dumpMessages: log all incoming messages
flushInterval: interval (in ms) to flush to Graphite
percentThreshold: for time information, calculate the Nth percentile
[%, default: 90]
*/
{
graphitePort: 2003
, graphiteHost: "graphite.host.com"
, port: 8125
}

0 comments on commit 67b8386

Please sign in to comment.