Skip to content

Commit

Permalink
Merge pull request #436 from johnl/435-timer-metric-docs-fix
Browse files Browse the repository at this point in the history
Describe timer sample rate in metric_types docs. Fixes #435
  • Loading branch information
mrtazz committed Feb 6, 2015
2 parents 1568565 + 0375990 commit 68ceda4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/metric_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Tells StatsD that this counter is being sent sampled every 1/10th of the time.
Timing
------

glork:320|ms
glork:320|ms|@0.1

The glork took 320ms to complete this time. StatsD figures out percentiles,
average (mean), standard deviation, sum, lower and upper bounds for the flush interval.
Expand Down Expand Up @@ -67,6 +67,10 @@ Examples:
[ { metric: 'foo', bins: [] },
{ metric: '', bins: [ 50, 100, 150, 200, 'inf'] } ]

Statsd also maintains a counter for each timer metric. The 3rd field
specifies the sample rate for this counter (in this example @0.1). The field
is optional and defaults to 1.

Note:

* first match for a metric wins.
Expand Down

0 comments on commit 68ceda4

Please sign in to comment.