pub struct BlockStats {
pub num_samples: u64,
pub num_float_samples: u64,
pub num_histogram_samples: u64,
pub num_series: u64,
pub num_chunks: u64,
pub num_tombstones: u64,
}Expand description
Sample, series and chunk counters copied from meta.json.
Prometheus writes these at block creation time, so they describe the block
before tombstones are applied. Blocks written by older versions or by
custom tooling may carry zeros; use crate::IndexReader::scan_stats when
an exact count matters.
Fields§
§num_samples: u64Total samples (float plus histogram).
num_float_samples: u64Float samples.
num_histogram_samples: u64Native histogram samples.
num_series: u64Series in the block.
num_chunks: u64Chunks in the block.
num_tombstones: u64Number of tombstone intervals recorded at creation time.
Trait Implementations§
Source§impl Clone for BlockStats
impl Clone for BlockStats
Source§impl Debug for BlockStats
impl Debug for BlockStats
Source§impl Default for BlockStats
impl Default for BlockStats
Source§impl<'de> Deserialize<'de> for BlockStats
impl<'de> Deserialize<'de> for BlockStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for BlockStats
impl Freeze for BlockStats
impl Move for BlockStats
impl RefUnwindSafe for BlockStats
impl Send for BlockStats
impl Sync for BlockStats
impl Unpin for BlockStats
impl UnsafeUnpin for BlockStats
impl UnwindSafe for BlockStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more