Metrics.
Metrics.
(counter-metric-help rec__8684__auto__)
(counter-metric-help data__8685__auto__ v__8686__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__8684__auto__)
(counter-metric-name data__8685__auto__ v__8686__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__8684__auto__)
(counter-metric-set-value? data__8685__auto__ v__8686__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__8684__auto__)
(counter-values-map data__8685__auto__ v__8686__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__8684__auto__)
(gauge-metric-help data__8685__auto__ v__8686__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__8684__auto__)
(gauge-metric-name data__8685__auto__ v__8686__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__8684__auto__)
(gauge-values-map data__8685__auto__ v__8686__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__8684__auto__)
(get-metric-samples-labels data__8685__auto__ v__8686__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__8684__auto__)
(get-metric-samples-metric data__8685__auto__ v__8686__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__8684__auto__)
(histogram-metric-help data__8685__auto__ v__8686__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__8684__auto__)
(histogram-metric-name data__8685__auto__ v__8686__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__8684__auto__)
(histogram-metric-thresholds data__8685__auto__ v__8686__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-values-bucket-values rec__8684__auto__)
(histogram-metric-values-bucket-values data__8685__auto__ v__8686__auto__)
Lens for the bucket-values
field from a [[HistogramMetricValues]] record. See active.clojure.logger.metric-accumulator/really-make-histogram-metric-values
.
Lens for the `bucket-values` field from a [[HistogramMetricValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric-values]].
(histogram-metric-values-count-value rec__8684__auto__)
(histogram-metric-values-count-value data__8685__auto__ v__8686__auto__)
Lens for the count-value
field from a [[HistogramMetricValues]] record. See active.clojure.logger.metric-accumulator/really-make-histogram-metric-values
.
Lens for the `count-value` field from a [[HistogramMetricValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric-values]].
(histogram-metric-values-last-update-time-ms rec__8684__auto__)
(histogram-metric-values-last-update-time-ms data__8685__auto__ v__8686__auto__)
Lens for the last-update-time-ms
field from a [[HistogramMetricValues]] record. See active.clojure.logger.metric-accumulator/really-make-histogram-metric-values
.
Lens for the `last-update-time-ms` field from a [[HistogramMetricValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric-values]].
(histogram-metric-values-sum-value rec__8684__auto__)
(histogram-metric-values-sum-value data__8685__auto__ v__8686__auto__)
Lens for the sum-value
field from a [[HistogramMetricValues]] record. See active.clojure.logger.metric-accumulator/really-make-histogram-metric-values
.
Lens for the `sum-value` field from a [[HistogramMetricValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric-values]].
(histogram-metric-values? thing)
Is object a HistogramMetricValues
record? See active.clojure.logger.metric-accumulator/really-make-histogram-metric-values
.
Is object a `HistogramMetricValues` record? See [[active.clojure.logger.metric-accumulator/really-make-histogram-metric-values]].
(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-map rec__8684__auto__)
(histogram-values-map data__8685__auto__ v__8686__auto__)
Lens for the map
field from a [[HistogramValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
Lens for the `map` field from a [[HistogramValues]] record. See [[active.clojure.logger.metric-accumulator/really-make-histogram-values]].
(histogram-values-thresholds rec__8684__auto__)
(histogram-values-thresholds data__8685__auto__ v__8686__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.
(make-histogram-metric-values last-update-time-ms
sum-value
count-value
bucket-values)
(metric-sample-labels rec__8684__auto__)
(metric-sample-labels data__8685__auto__ v__8686__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__8684__auto__)
(metric-sample-name data__8685__auto__ v__8686__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__8684__auto__)
(metric-sample-set-help data__8685__auto__ v__8686__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__8684__auto__)
(metric-sample-set-name data__8685__auto__ v__8686__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__8684__auto__)
(metric-sample-set-samples data__8685__auto__ v__8686__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__8684__auto__)
(metric-sample-set-type data__8685__auto__ v__8686__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__8684__auto__)
(metric-sample-timestamp data__8685__auto__ v__8686__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__8684__auto__)
(metric-sample-value data__8685__auto__ v__8686__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__8684__auto__)
(metric-value-last-update-time-ms data__8685__auto__ v__8686__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__8684__auto__)
(metric-value-value data__8685__auto__ v__8686__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-histogram-metric-value histogram-values-map time-ms)
(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__8684__auto__)
(prune-stale-metrics-time-ms data__8685__auto__ v__8686__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]].
(really-make-histogram-metric-values last-update-time-ms
sum-value
count-value
bucket-values)
Construct a HistogramMetricValues
(Stored Histogram metric values.) record.
last-update-time-ms
: access via active.clojure.logger.metric-accumulator/histogram-metric-values-last-update-time-ms
sum-value
: access via active.clojure.logger.metric-accumulator/histogram-metric-values-sum-value
count-value
: access via active.clojure.logger.metric-accumulator/histogram-metric-values-count-value
bucket-values
: access via active.clojure.logger.metric-accumulator/histogram-metric-values-bucket-values
Construct a `HistogramMetricValues` (Stored Histogram metric values.) record. `last-update-time-ms`: access via [[active.clojure.logger.metric-accumulator/histogram-metric-values-last-update-time-ms]] `sum-value`: access via [[active.clojure.logger.metric-accumulator/histogram-metric-values-sum-value]] `count-value`: access via [[active.clojure.logger.metric-accumulator/histogram-metric-values-count-value]] `bucket-values`: access via [[active.clojure.logger.metric-accumulator/histogram-metric-values-bucket-values]]
(really-update-histogram-values-map histogram-values-map
metric-labels
thresholds
metric-value)
(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__8684__auto__)
(record-metric-labels data__8685__auto__ v__8686__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__8684__auto__)
(record-metric-last-update data__8685__auto__ v__8686__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__8684__auto__)
(record-metric-metric data__8685__auto__ v__8686__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__8684__auto__)
(record-metric-value data__8685__auto__ v__8686__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-metric-values histogram-metric-values thresholds metric-value)
(update-histogram-values histogram-values metric-labels metric-value)
Updates a HistogramMetric
.
Updates a `HistogramMetric`.
(update-histogram-values-map histogram-values-map
thresholds
metric-labels
metric-value)
(update-metric-value f metric-value-1 metric-value-2)
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-valueis
nil` 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.
(update-or-make-stored-values maybe-stored-values
metric
metric-labels
metric-value)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close