module Statsd::Methods
Direct including types
Defined in:
statsd/methods.crInstance Method Summary
- #decrement(metric_name, sample_rate = nil, tags = nil)
-
#gauge(metric_name, value, tags = nil)
Gauge
-
#histogram(metric_name, value, tags = nil)
Histograms
- #increment(metric_name, sample_rate = nil, tags = nil)
-
#set(metric_name, value, tags = nil)
Sets
-
#time(metric_name, tags = nil, &)
Measure execution time of a given block, using {#timing}.
-
#timing(metric_name, ms, tags = nil)
Send a timing as a metric.
Instance Method Detail
Gauge
A gauge is an instantaneous measurement of a value, like the gas gauge in a car. It differs from a counter by being calculated at the client rather than the server. Valid gauge values are in the range [0, 2^64^)
Histograms
A histogram is a measure of the distribution of timer values over time, calculated at the server. As the data exported for timers and histograms is the same, this is currently an alias for a timer. Valid histogram values are in the range [0, 2^64^).
Example:
<metric name>:<value>|h
Sets
StatsD supports counting unique occurences of events between flushes, using a Set to store all occuring events. Example:
<metric name>:<value>|s
Send a timing as a metric. This is sending a time measurement, as calculated by some other code, in milliseconds.
Example:
stastd.timing("db.query", 200)