(add-metric title metric)
(add-metric reg title metric)
Add a metric with the given title.
Add a metric with the given title.
(counters reg)
Returns a map of all the counters in the registry and their names.
Returns a map of all the counters in the registry and their names.
Default registry used by public API functions when no explicit registry argument is given
Default registry used by public API functions when no explicit registry argument is given
(exponentially-decaying-reservoir)
(exponentially-decaying-reservoir size alpha)
Create an exponentially decaying reservior, which uses Cormode et al's forward-decaying priority reservoir sampling method to produce a statistically representative sampling reservoir, exponentially biased towards newer entries. Default size: 1028, alpha 0.015
Create an exponentially decaying reservior, which uses Cormode et al's forward-decaying priority reservoir sampling method to produce a statistically representative sampling reservoir, exponentially biased towards newer entries. Default size: 1028, alpha 0.015
(gauges reg)
Returns a map of all the gauges in the registry and their names.
Returns a map of all the gauges in the registry and their names.
(histograms reg)
Returns a map of all the histograms in the registry and their names.
Returns a map of all the histograms in the registry and their names.
(meters reg)
Returns a map of all the meters in the registry and their names.
Returns a map of all the meters in the registry and their names.
(remove-all-metrics)
(remove-all-metrics reg)
Remove all the metrics in the given registry, or the default registry if no registry given.
Remove all the metrics in the given registry, or the default registry if no registry given.
(remove-metric title)
(remove-metric reg title)
Remove the metric with the given title.
Remove the metric with the given title.
(remove-metrics pred)
(remove-metrics reg pred)
Remove all the metrics matching the given predicate in the given repository, or the default registry if no registry given. The predicate takes one argument, the name of the metric.
Remove all the metrics matching the given predicate in the given repository, or the default registry if no registry given. The predicate takes one argument, the name of the metric.
(replace-metric title metric)
(replace-metric reg title metric)
Replace a metric with the given title.
Replace a metric with the given title.
(sliding-time-window-reservoir window unit)
Create a reservior backed by a sliding window that stores only the measurements made in the last N seconds
Create a reservior backed by a sliding window that stores only the measurements made in the last N seconds
(sliding-window-reservoir size)
Create a reservior backed by a sliding window that stores the last N measurements.
Create a reservior backed by a sliding window that stores the last N measurements.
(timers reg)
Returns a map of all the timers in the registry and their names.
Returns a map of all the timers in the registry and their names.
(uniform-reservior)
(uniform-reservior size)
Create a uniform reservior, which uses Vitter's Algorithm R to produce a statistically representative sample. Default size: 1028.
Create a uniform reservior, which uses Vitter's Algorithm R to produce a statistically representative sample. Default size: 1028.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close