A simple StatsD client written in Clojure Taken from https://github.com/etsy/statsd/tree/master/examples
Comments for metrics are taken from official documentation: http://docs.datadoghq.com/guides/dogstatsd
A simple StatsD client written in Clojure Taken from https://github.com/etsy/statsd/tree/master/examples Comments for metrics are taken from official documentation: http://docs.datadoghq.com/guides/dogstatsd
(decrement conn-spec metric)
(decrement conn-spec metric arg)
(decrement conn-spec metric value tags)
Shorthand for incrementing by negative values.
Shorthand for incrementing by negative values.
(format-tags tags)
Construcsts statsd-formatted string with tags
Construcsts statsd-formatted string with tags
(gauge conn-spec metric value)
(gauge conn-spec metric value tags)
Histograms track the statistical distribution of a set of values, like the duration of a number of database queries or the size of files uploaded by users. Each histogram will track the average, the minimum, the maximum, the median, the 95th percentile and the count.
Histograms track the statistical distribution of a set of values, like the duration of a number of database queries or the size of files uploaded by users. Each histogram will track the average, the minimum, the maximum, the median, the 95th percentile and the count.
(increment conn-spec metric)
(increment conn-spec metric arg)
(increment conn-spec metric value tags)
Counters track how many times something happened per second, like the number of database requests or page views.
Counters track how many times something happened per second, like the number of database requests or page views.
(timed conn-spec metric tags & body)
Measure time of the execution of the provided body parts, and then report measured time. Returns value returned by last expression.
Measure time of the execution of the provided body parts, and then report measured time. Returns value returned by last expression.
(timing conn-spec metric value)
(timing conn-spec metric value tags)
StatsD only supports histograms for timing, not generic values (like the size of uploaded files or the number of rows returned from a query). Timers are essentially a special case of histograms, so they are treated in the same manner by DogStatsD for backwards compatibility.
You might consider using macro timed
StatsD only supports histograms for timing, not generic values (like the size of uploaded files or the number of rows returned from a query). Timers are essentially a special case of histograms, so they are treated in the same manner by DogStatsD for backwards compatibility. You might consider using macro `timed`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close