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:
| Label | Description |
|---|---|
destination_kind | Kind of destination the writer handles, for example custom-ch |
| Metric | Type | Description |
|---|---|---|
writer_batches_claimed | counter | Batch notifications claimed from the queue and successfully written. |
writer_events_written | counter | Events flushed to the destination. |
writer_active_destinations | gauge | Per-destination writer workers currently running. A worker runs only for destinations that have pending work. |
Writer errors
| Metric | Type | Labels | Description |
|---|---|---|---|
writer_errors | counter | destination_kind, stage | Writer errors by stage. |
writer_claims_skipped_expired | counter | destination_kind | Claims 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
| Metric | Type | Labels | Description |
|---|---|---|---|
writer_flush_latency_ms | histogram | destination_kind | End-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
| Label | Description |
|---|---|
destID | ID of the destination |
srcType | Source type, for example alb or s3bucket |
wkspID | ID of the workspace the events belong to |
| Metric | Type | Labels | Description |
|---|---|---|---|
events_inserted_clickhouse | counter | srcType, wkspID | Number of events inserted into ClickHouse. |
events_failed_insert_clickhouse | counter | srcType, wkspID | Number of events lost because a ClickHouse batch insert failed. Any non-zero rate means events were dropped. |
insert_batch_duration_seconds | histogram | destID | Duration of ClickHouse insert batches in seconds. |
insert_batch_bytes | histogram | destID | Size 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
| Metric | Type | Labels | Description |
|---|---|---|---|
logs_count | counter | level (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:
- Go collector (
go_*) - Process collector (
process_*) - Go
runtime/metrics, the source of the runtime values behindgo_*