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.
| Label | Description |
|---|---|
workspace | Slug of the workspace. Empty for the shared default destination. |
destination | Name of the destination. Empty for the shared default destination. |
destination_id | ID of the destination. Empty for the shared default destination. |
kind | Queue kind: default-ch, custom-ch, detection-default-ch, or detection-custom-ch. The detection- kinds carry streaming detection batches. |
| Metric | Type | Description |
|---|---|---|
batch_queue_batches | gauge | Batches in the queue, visible or not. |
batch_queue_available_batches | gauge | Batches currently visible for processing. |
batch_queue_available_events | gauge | Events across all currently visible batches. |
batch_queue_available_bytes | gauge | Uncompressed size of all currently visible batches, in bytes. |
batch_queue_inflight_batches | gauge | Batches claimed by a writer and not yet visible again. |
batch_queue_deferred_batches | gauge | Batches hidden while their destination is unreachable. They become visible again later. |
batch_queue_deferred_events | gauge | Events across batches hidden while their destination is unreachable. |
batch_queue_oldest_available_age_seconds | gauge | Age 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.
| Metric | Type | Labels | Description |
|---|---|---|---|
query_duration_seconds | gauge | query | How long the named query took to run, in seconds, on the last scrape. |
query_rows_returned | gauge | query | Number 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:
- Go collector (
go_*) - Process collector (
process_*) - Go
runtime/metrics, the source of the runtime values behindgo_*