Skip to main content

META_VERSION

Constant META_VERSION 

Source
pub const META_VERSION: i32 = 1;
Expand description

The only meta.json format version Prometheus writes.

This is not the index format version: Prometheus hardcodes this field to 1 in writeMetaFile while the index header independently carries version 1, 2 or 3. Code that compares the two will report false positives, so crate::BlockReader::validate only warns when the field differs.