RunReveal

RRWriter Metrics

RRWriter exposes these metrics on /metrics when writer.pprof is set. See Monitoring for how to enable and scrape them.

Writer throughput

Counters and a gauge for the batches RRWriter reads from the queue and writes to a destination. All of them carry one label:

LabelDescription
destination_kindKind of destination the writer handles, for example custom-ch
MetricTypeDescription
writer_batches_claimedcounterBatch notifications claimed from the queue and successfully written.
writer_events_writtencounterEvents flushed to the destination.
writer_active_destinationsgaugePer-destination writer workers currently running. A worker runs only for destinations that have pending work.

Writer errors

MetricTypeLabelsDescription
writer_errorscounterdestination_kind, stageWriter errors by stage.
writer_claims_skipped_expiredcounterdestination_kindClaims skipped because their visibility window elapsed while the writer waited for a free flush slot. The batch is redelivered and written by a later claim. A rising rate means the flush concurrency limit is too low for your load.

stage is where the failure happened: claim, fetch, decode, flush, ack, discover, config, or config_not_found.

Flush latency

MetricTypeLabelsDescription
writer_flush_latency_mshistogramdestination_kindEnd-to-end latency of a coalesced flush, from claim to ack, in milliseconds.

The default histogram buckets only go up to 10, so nearly every observation falls in the +Inf bucket. Use the _sum and _count series instead of histogram_quantile().

ClickHouse inserts

LabelDescription
destIDID of the destination
srcTypeSource type, for example alb or s3bucket
wkspIDID of the workspace the events belong to
MetricTypeLabelsDescription
events_inserted_clickhousecountersrcType, wkspIDNumber of events inserted into ClickHouse.
events_failed_insert_clickhousecountersrcType, wkspIDNumber of events lost because a ClickHouse batch insert failed. Any non-zero rate means events were dropped.
insert_batch_duration_secondshistogramdestIDDuration of ClickHouse insert batches in seconds.
insert_batch_byteshistogramdestIDSize of ClickHouse insert batches in bytes.

insert_batch_bytes uses the default buckets, which stop at 10, so every observation falls in the +Inf bucket. Use its _sum and _count series. insert_batch_duration_seconds is measured in seconds, so its buckets work with histogram_quantile().

Logs

MetricTypeLabelsDescription
logs_countcounterlevel (for example INFO, WARN)Number of log lines written, by level.

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