forked from statsd/statsd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
StatsD | ||
====== | ||
|
||
Sometimes you need to count stuff. | ||
Maybe you need to know how long something took. | ||
|
||
|
||
Concepts | ||
-------- | ||
|
||
* *buckets* | ||
Each stat is in it's own "bucket". They are not predefined anywhere. Buckets can be named anything that will translate to Graphite (periods make folders, etc) | ||
|
||
* *values* | ||
Each stat will have a value. How it is interpreted depends on modifiers | ||
|
||
* *flush* | ||
After the flush interval timeout (default 10 seconds), stats are munged and sent over to Graphite. | ||
|
||
Counting | ||
-------- | ||
|
||
gorets:1|c | ||
|
||
This is a simple counter. Add 1 to the "gorets" bucket. It stays in memory until the flush interval. | ||
|
||
|
||
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. | ||
|
||
Sampling | ||
-------- | ||
|
||
gorets:1|c|@0.1 | ||
|
||
Tells StatsD that this counter is being sent sampled ever 1/10th of the time. | ||
|
||
|
||
Guts | ||
---- | ||
|
||
* UDP | ||
Client libraries use UDP to send information to the StatsD daemon. | ||
|
||
* NodeJS | ||
* Graphite |