RunReveal

Queue Depth Exporter Metrics

The queue depth exporter reports how much work is waiting in the batch notification queue that RRWriter reads from. See Monitoring for how to scrape metrics.

Batch queue depth

Gauges with one series per destination and kind. A value that keeps growing means RRWriter isn't keeping up with ingestion. Compare against the RRWriter metrics.

LabelDescription
workspaceSlug of the workspace. Empty for the shared default destination.
destinationName of the destination. Empty for the shared default destination.
destination_idID of the destination. Empty for the shared default destination.
kindQueue kind: default-ch, custom-ch, detection-default-ch, or detection-custom-ch. The detection- kinds carry streaming detection batches.
MetricTypeDescription
batch_queue_batchesgaugeBatches in the queue, visible or not.
batch_queue_available_batchesgaugeBatches currently visible for processing.
batch_queue_available_eventsgaugeEvents across all currently visible batches.
batch_queue_available_bytesgaugeUncompressed size of all currently visible batches, in bytes.
batch_queue_inflight_batchesgaugeBatches claimed by a writer and not yet visible again.
batch_queue_deferred_batchesgaugeBatches hidden while their destination is unreachable. They become visible again later.
batch_queue_deferred_eventsgaugeEvents across batches hidden while their destination is unreachable.
batch_queue_oldest_available_age_secondsgaugeAge of the oldest currently visible batch, in seconds. 0 when nothing is available.

Exporter queries

The exporter reports how long its own query took on the last scrape.

MetricTypeLabelsDescription
query_duration_secondsgaugequeryHow long the named query took to run, in seconds, on the last scrape.
query_rows_returnedgaugequeryNumber of rows the named query returned on the last scrape.

The query label is batch_queue_depth for the queue depth query.

Standard Go and process metrics

The endpoint also serves the standard go_* and process_* metrics, such as goroutine counts, memory use, GC activity, CPU time, and open file descriptors. They aren't listed here. See the public documentation:

On this page