(add-exponential-buckets-past-maximum base-buckets)(add-exponential-buckets-past-maximum base-buckets max-time-seconds)(decrement-messages-in-flight registry)(decrement-messages-in-flight registry n)(get-default-histogram-buckets {:keys [max-batch-size] :or {max-batch-size 50}})(increment-messages-in-flight registry)(increment-messages-in-flight registry n)(init)(init {:keys [registry ring? jvm?]
:or {ring? true jvm? true registry *default-registry*}})Initialises a Prometheus metrics registry and returns it.
Initialises a Prometheus metrics registry and returns it.
(message-ack-time registry & body)(message-process-time registry & body)(message-publish-time registry & body)(message-read-time registry & body)(message-result-write-time registry & body)(message-total-time registry & body)(observe-message-batch-size registry size)(observe-queue-worker-error registry _)(observe-time-seconds metric registry start-timestamp-ms end-timestamp-ms)Given a metric name and a start/end timestamp in milliseconds, observes the time in seconds between the two times.
Given a metric name and a start/end timestamp in milliseconds, observes the time in seconds between the two times.
(pipeline-latency registry {:keys [histogram-buckets-overrides] :as config})Registers metrics to track latency from point-to-point in a pipeline to the given registry.
document-latency-buckets must be provided - be sure to include the explicit value of any SLOs in your bucket distribution.
Registers metrics to track latency from point-to-point in a pipeline to the given registry. document-latency-buckets must be provided - be sure to include the explicit value of any SLOs in your bucket distribution.
(queue-reader registry {:keys [histogram-buckets-overrides] :as config})Registers queue reader metrics on the given registry.
Registers queue reader metrics on the given registry.
(queue-writer registry {:keys [histogram-buckets-overrides] :as config})Registers queue worker metrics on the given registry.
Registers queue worker metrics on the given registry.
(record-pipeline-metrics-for-complete-document registry
{:keys [mode measured-from]}
received-date-time)(ring-wrap-instrumentation registry app)Wraps a ring application in Prometheus instrumentation.
Wraps a ring application in Prometheus instrumentation.
(ring-wrap-metrics-expose registry app)Creates a ring handler which exposes Prometheus metrics for the given registry on /internal/metrics.
Creates a ring handler which exposes Prometheus metrics for the given registry on /internal/metrics.
(take-while-and-n-more pred n coll)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 |