Metrics.
Metrics.
(counter-metric-help rec__6325__auto__)(counter-metric-help data__6326__auto__ v__6327__auto__)Lens for the help field from a [[CounterMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-counter-metric]].
Lens for the `help` field from a [[CounterMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-counter-metric]].
(counter-metric-name rec__6325__auto__)(counter-metric-name data__6326__auto__ v__6327__auto__)Lens for the name field from a [[CounterMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-counter-metric]].
Lens for the `name` field from a [[CounterMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-counter-metric]].
(counter-metric-set-value? rec__6325__auto__)(counter-metric-set-value? data__6326__auto__ v__6327__auto__)Lens for the set-value? field from a [[CounterMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-counter-metric]].
Lens for the `set-value?` field from a [[CounterMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-counter-metric]].
(counter-metric? thing)Is object a CounterMetric record? See [[active.clojure.logger.metric-accumulator/really-make-counter-metric]].
Is object a `CounterMetric` record? See [[active.clojure.logger.metric-accumulator/really-make-counter-metric]].
(counter-values->metric-samples name counter-values metric-labels)(counter-values-map rec__6325__auto__)(counter-values-map data__6326__auto__ v__6327__auto__)Lens for the map field from a [[CounterValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-counter-values]].
Lens for the `map` field from a [[CounterValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-counter-values]].
(counter-values? thing)Is object a CounterValues record? See [[active.clojure.logger.metric-accumulator/really-make-counter-values]].
Is object a `CounterValues` record? See [[active.clojure.logger.metric-accumulator/really-make-counter-values]].
(gauge-metric-help rec__6325__auto__)(gauge-metric-help data__6326__auto__ v__6327__auto__)Lens for the help field from a [[GaugeMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-gauge-metric]].
Lens for the `help` field from a [[GaugeMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-gauge-metric]].
(gauge-metric-name rec__6325__auto__)(gauge-metric-name data__6326__auto__ v__6327__auto__)Lens for the name field from a [[GaugeMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-gauge-metric]].
Lens for the `name` field from a [[GaugeMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-gauge-metric]].
(gauge-metric? thing)Is object a GaugeMetric record? See [[active.clojure.logger.metric-accumulator/really-make-gauge-metric]].
Is object a `GaugeMetric` record? See [[active.clojure.logger.metric-accumulator/really-make-gauge-metric]].
(gauge-values-map rec__6325__auto__)(gauge-values-map data__6326__auto__ v__6327__auto__)Lens for the map field from a [[GaugeValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-gauge-values]].
Lens for the `map` field from a [[GaugeValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-gauge-values]].
(gauge-values? thing)Is object a GaugeValues record? See [[active.clojure.logger.metric-accumulator/really-make-gauge-values]].
Is object a `GaugeValues` record? See [[active.clojure.logger.metric-accumulator/really-make-gauge-values]].
(get-all-metric-sample-sets!)(get-all-metric-sample-sets! a-metric-store)Return all metric-samples-sets within the given metric-store. If no metric-store is given, use the global metric store.
Return all metric-samples-sets within the given metric-store. If no metric-store is given, use the global metric store.
(get-all-metric-sample-sets-1 metric-store)Return all metric-samples-sets within the given metric-store.
Return all metric-samples-sets within the given metric-store.
(get-all-metric-sample-sets? thing)Is object a GetAllMetricSampleSets record? See [[active.clojure.logger.metric-accumulator/really-get-all-metric-sample-sets]].
Is object a `GetAllMetricSampleSets` record? See [[active.clojure.logger.metric-accumulator/really-get-all-metric-sample-sets]].
(get-metric-samples! a-metric-store metric labels)Return all metric-samples for a given metric within the given metric-store with the given labels.
Return all metric-samples for a given metric within the given metric-store with the given labels.
(get-metric-samples-labels rec__6325__auto__)(get-metric-samples-labels data__6326__auto__ v__6327__auto__)Lens for the labels field from a [[GetMetricSamples]] record. See [[active.clojure.logger.metric-accumulator/really-get-metric-samples]].
Lens for the `labels` field from a [[GetMetricSamples]] record. See [[active.clojure.logger.metric-accumulator/really-get-metric-samples]].
(get-metric-samples-metric rec__6325__auto__)(get-metric-samples-metric data__6326__auto__ v__6327__auto__)Lens for the metric field from a [[GetMetricSamples]] record. See [[active.clojure.logger.metric-accumulator/really-get-metric-samples]].
Lens for the `metric` field from a [[GetMetricSamples]] record. See [[active.clojure.logger.metric-accumulator/really-get-metric-samples]].
(get-metric-samples? thing)Is object a GetMetricSamples record? See [[active.clojure.logger.metric-accumulator/really-get-metric-samples]].
Is object a `GetMetricSamples` record? See [[active.clojure.logger.metric-accumulator/really-get-metric-samples]].
(histogram-metric-help rec__6325__auto__)(histogram-metric-help data__6326__auto__ v__6327__auto__)Lens for the help field from a [[HistogramMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric]].
Lens for the `help` field from a [[HistogramMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric]].
(histogram-metric-name rec__6325__auto__)(histogram-metric-name data__6326__auto__ v__6327__auto__)Lens for the name field from a [[HistogramMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric]].
Lens for the `name` field from a [[HistogramMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric]].
(histogram-metric-thresholds rec__6325__auto__)(histogram-metric-thresholds data__6326__auto__ v__6327__auto__)Lens for the thresholds field from a [[HistogramMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric]].
Lens for the `thresholds` field from a [[HistogramMetric]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric]].
(histogram-metric? thing)Is object a HistogramMetric record? See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric]].
Is object a `HistogramMetric` record? See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric]].
(histogram-values->metric-samples basename histogram-values metric-labels)Return all metric-samples with the given labels within this histogram-metric.
Return all metric-samples with the given labels within this histogram-metric.
(histogram-values-bucket-maps rec__6325__auto__)(histogram-values-bucket-maps data__6326__auto__ v__6327__auto__)Lens for the bucket-maps field from a [[HistogramValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
Lens for the `bucket-maps` field from a [[HistogramValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
(histogram-values-count-map rec__6325__auto__)(histogram-values-count-map data__6326__auto__ v__6327__auto__)Lens for the count-map field from a [[HistogramValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
Lens for the `count-map` field from a [[HistogramValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
(histogram-values-sum-map rec__6325__auto__)(histogram-values-sum-map data__6326__auto__ v__6327__auto__)Lens for the sum-map field from a [[HistogramValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
Lens for the `sum-map` field from a [[HistogramValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
(histogram-values-thresholds rec__6325__auto__)(histogram-values-thresholds data__6326__auto__ v__6327__auto__)Lens for the thresholds field from a [[HistogramValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
Lens for the `thresholds` field from a [[HistogramValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
(histogram-values? thing)Is object a HistogramValues record? See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
Is object a `HistogramValues` record? See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
(inc-metric-value labels-value-map metric-labels metric-value-2)Increment a metric-value within a labels-value-map.
Increment a metric-value within a labels-value-map.
(metric-sample-labels rec__6325__auto__)(metric-sample-labels data__6326__auto__ v__6327__auto__)Lens for the labels field from a [[MetricSample]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample]].
Lens for the `labels` field from a [[MetricSample]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample]].
(metric-sample-name rec__6325__auto__)(metric-sample-name data__6326__auto__ v__6327__auto__)Lens for the name field from a [[MetricSample]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample]].
Lens for the `name` field from a [[MetricSample]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample]].
(metric-sample-set-help rec__6325__auto__)(metric-sample-set-help data__6326__auto__ v__6327__auto__)Lens for the help field from a [[MetricSampleSet]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample-set]].
Lens for the `help` field from a [[MetricSampleSet]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample-set]].
(metric-sample-set-name rec__6325__auto__)(metric-sample-set-name data__6326__auto__ v__6327__auto__)Lens for the name field from a [[MetricSampleSet]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample-set]].
Lens for the `name` field from a [[MetricSampleSet]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample-set]].
(metric-sample-set-samples rec__6325__auto__)(metric-sample-set-samples data__6326__auto__ v__6327__auto__)Lens for the samples field from a [[MetricSampleSet]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample-set]].
Lens for the `samples` field from a [[MetricSampleSet]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample-set]].
(metric-sample-set-type rec__6325__auto__)(metric-sample-set-type data__6326__auto__ v__6327__auto__)Lens for the type field from a [[MetricSampleSet]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample-set]].
Lens for the `type` field from a [[MetricSampleSet]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample-set]].
(metric-sample-set? thing)Is object a MetricSampleSet record? See [[active.clojure.logger.metric-accumulator/really-make-metric-sample-set]].
Is object a `MetricSampleSet` record? See [[active.clojure.logger.metric-accumulator/really-make-metric-sample-set]].
(metric-sample-timestamp rec__6325__auto__)(metric-sample-timestamp data__6326__auto__ v__6327__auto__)Lens for the timestamp field from a [[MetricSample]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample]].
Lens for the `timestamp` field from a [[MetricSample]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample]].
(metric-sample-value rec__6325__auto__)(metric-sample-value data__6326__auto__ v__6327__auto__)Lens for the value field from a [[MetricSample]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample]].
Lens for the `value` field from a [[MetricSample]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-sample]].
(metric-sample? thing)Is object a MetricSample record? See [[active.clojure.logger.metric-accumulator/really-make-metric-sample]].
Is object a `MetricSample` record? See [[active.clojure.logger.metric-accumulator/really-make-metric-sample]].
(metric-value-last-update-time-ms rec__6325__auto__)(metric-value-last-update-time-ms data__6326__auto__ v__6327__auto__)Lens for the last-update-time-ms field from a [[MetricValue]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-value]].
Lens for the `last-update-time-ms` field from a [[MetricValue]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-value]].
(metric-value-value rec__6325__auto__)(metric-value-value data__6326__auto__ v__6327__auto__)Lens for the value field from a [[MetricValue]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-value]].
Lens for the `value` field from a [[MetricValue]] record. See [[active.clojure.logger.metric-accumulator/really-make-metric-value]].
(metric-value? thing)Is object a MetricValue record? See [[active.clojure.logger.metric-accumulator/really-make-metric-value]].
Is object a `MetricValue` record? See [[active.clojure.logger.metric-accumulator/really-make-metric-value]].
(prune-stale-metrics! time-ms)(prune-stale-metrics! a-metric-store time-ms)Prune all metrics in the a-metric-store that are older than time-ms. That is,
the last update time in ms of the metric value is smaller than time-ms.
If no metric-store is given, use the global metric store.
Prune all metrics in the `a-metric-store` that are older than `time-ms`. That is, the last update time in ms of the metric value is smaller than `time-ms`. If no metric-store is given, use the global metric store.
(prune-stale-metrics-time-ms rec__6325__auto__)(prune-stale-metrics-time-ms data__6326__auto__ v__6327__auto__)Lens for the time-ms field from a [[PruneStaleMetrics]] record. See [[active.clojure.logger.metric-accumulator/really-prune-stale-metrics]].
Lens for the `time-ms` field from a [[PruneStaleMetrics]] record. See [[active.clojure.logger.metric-accumulator/really-prune-stale-metrics]].
(prune-stale-metrics? thing)Is object a PruneStaleMetrics record? See [[active.clojure.logger.metric-accumulator/really-prune-stale-metrics]].
Is object a `PruneStaleMetrics` record? See [[active.clojure.logger.metric-accumulator/really-prune-stale-metrics]].
(record-and-get! metric labels value)(record-and-get! metric labels value last-update)(record-and-get! a-metric-store metric labels value last-update)(record-metric! metric labels value-value)(record-metric! metric labels value-value last-update)(record-metric! a-metric-store metric labels value-value last-update)Record a metric.
Record a metric.
(record-metric-labels rec__6325__auto__)(record-metric-labels data__6326__auto__ v__6327__auto__)Lens for the labels field from a [[RecordMetric]] record. See [[active.clojure.logger.metric-accumulator/really-record-metric]].
Lens for the `labels` field from a [[RecordMetric]] record. See [[active.clojure.logger.metric-accumulator/really-record-metric]].
(record-metric-last-update rec__6325__auto__)(record-metric-last-update data__6326__auto__ v__6327__auto__)Lens for the last-update field from a [[RecordMetric]] record. See [[active.clojure.logger.metric-accumulator/really-record-metric]].
Lens for the `last-update` field from a [[RecordMetric]] record. See [[active.clojure.logger.metric-accumulator/really-record-metric]].
(record-metric-metric rec__6325__auto__)(record-metric-metric data__6326__auto__ v__6327__auto__)Lens for the metric field from a [[RecordMetric]] record. See [[active.clojure.logger.metric-accumulator/really-record-metric]].
Lens for the `metric` field from a [[RecordMetric]] record. See [[active.clojure.logger.metric-accumulator/really-record-metric]].
(record-metric-value rec__6325__auto__)(record-metric-value data__6326__auto__ v__6327__auto__)Lens for the value field from a [[RecordMetric]] record. See [[active.clojure.logger.metric-accumulator/really-record-metric]].
Lens for the `value` field from a [[RecordMetric]] record. See [[active.clojure.logger.metric-accumulator/really-record-metric]].
(record-metric? thing)Is object a RecordMetric record? See [[active.clojure.logger.metric-accumulator/really-record-metric]].
Is object a `RecordMetric` record? See [[active.clojure.logger.metric-accumulator/really-record-metric]].
(set-metric-value labels-value-map metric-labels metric-value)Set a metric-value within a labels-value-map.
Set a metric-value within a labels-value-map.
(start-prune-stale-metrics-thread! & [stale-seconds every-seconds])Start a thread that prunes stale metrics older than stale-seconds seconds
every every-seconds seconds. If called without an argument, it prunes
metrics older than 24h every 5m.
Start a thread that prunes stale metrics older than `stale-seconds` seconds every `every-seconds` seconds. If called without an argument, it prunes metrics older than 24h every 5m.
(stored-value->metric-samples metric stored-value metric-labels)(update-counter-values counter-values metric-labels metric-value)Updates a CounterMetric.
Updates a `CounterMetric`.
(update-gauge-values gauge-values metric-labels metric-value)Updates a GaugeValues
Updates a `GaugeValues`
(update-histogram-values histogram-values metric-labels metric-value)Updates a HistogramMetric.
Updates a `HistogramMetric`.
(update-metric-value f metric-value-1 metric-value-2)Update a MetricValue by applying a function f to the values of the old
and the new MetricValue and setting the timestamp to the new timestamp. If
the old-metric-valueisnil` take the new-metric-value.
Update a `MetricValue` by applying a function `f` to the `value`s of the old and the new `MetricValue` and setting the `timestamp` to the new timestamp. If the old-metric-value` is `nil` take the new-metric-value.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |