Skip to main content

Module validation

Module validation 

Source
Expand description

Block-level consistency checks.

Opening a block validates each file on its own. This module cross-checks them: the metadata Prometheus wrote against the index that is actually on disk, every chunk reference against the segment it points into, and the tombstones against the index series space.

BlockReader::validate scans the index series section without resolving symbols and frames every referenced chunk record, but never decodes a sample. That is cheap enough for an export that wants to fail fast on a corrupt block; sample-level damage still surfaces when a chunk is decoded, and crate::SampleIterator reports it with the series and chunk that produced it.

Structs§

Finding
One discrepancy found while validating a block.
ValidationReport
Everything validation learned about a block.

Enums§

Severity
How serious a Finding is.