Skip to main content

Metrics reference

The metrics listener, 0.0.0.0:9090 by default, serves /metrics, /livez, /readyz and /scaling/pressure. Names are bare unless metrics.namespace sets a prefix, and none is set by default. dfe-archiver metrics-manifest prints every series with its type, labels and description, scalo's runtime, transport and spool series included. The tables below are the series the archiver records itself.

Counters​

MetricWhat it counts
messages_received_totalRecords received from the transport
messages_written_totalRecords written into an open archive file, before the store confirms it
messages_archived_totalRecords in archive files the store confirmed
messages_dlq_totalRecords the DLQ confirmed it holds
messages_dropped_total{reason}Records dropped for good: refused (the store or the codec, with the DLQ off), dlq_too_large, too_deep (with the DLQ off) or unreplayable (written nowhere, on grpc or with acknowledgements off)
bytes_written_totalUncompressed bytes written into archive files
bytes_compressed_totalCompressed bytes written into archive files
files_created_totalArchive files opened
files_closed_totalArchive files closed, by a roll, an eviction or shutdown
archive_roll_total{trigger}Files rolled, by size or age
writer_evictions_totalWriters closed because archive.max_writers was reached
hot_buffer_evictions_totalHot buffers flushed early because a record for another destination needed their slot
flush_operations_totalBatches written into archive files
archive_errors_totalFailed write, close and upload attempts, each counted
kafka_commit_errors_totalOffset releases the transport failed
routing_errors_totalRecords routing could not read, archived under their topic
routing_fallback_total{field}Expression-routing fields missing from a record, by field path
staged_files_recovered_totalComplete staged files a previous process left, uploaded by this one
staged_files_quarantined_total{reason}Staged files moved to quarantine: unreadable, incomplete, corrupt or no_store
staged_files_removed_total{reason}Staged files removed at startup: replayed or quarantine_full

Gauges​

MetricWhat it holds
kafka_lagRecords past this pod's read position, summed across its partitions. The commit an open file holds does not inflate it
pipeline_delivery_guarantee{guarantee,reason}1 for the delivery guarantee in force
hot_buffers_activeHot buffers, at most 64, an empty one included until it is evicted
hot_buffers_bytesBytes in the hot buffers
buffer_bytesBytes in the hot buffers, the same value as hot_buffers_bytes
buffer_recordsThe hot-buffer count, the same value as hot_buffers_active, not a record count
unique_destinationsArchive writers open, one per destination
uploads_pendingArchive files staged locally and not yet confirmed by the store
staged_bytesBytes of archive files staged locally and not yet uploaded
compression_ratioCompressed over uncompressed bytes of the last batch written
events_per_secondRecords received per second since the last batch
pipeline_last_batch_timestamp_secondsUnix time of the last batch processed

Histograms​

MetricWhat it measures
batch_size_bytesUncompressed size of each batch written
flush_duration_secondsTime to write a batch into its file, retries included
compression_duration_secondsTime to compress a batch
archive_file_size_bytesCompressed size of each file closed