[][src]Struct cannyls::metrics::StorageMetrics

pub struct StorageMetrics { /* fields omitted */ }

Storageのメトリクス.

Prometheus

Methods節に記載の無いメトリクスのみを掲載:

cannyls_storage_header { version="<MAJOR>.<MINOR>", block_size="<BLOCK_SIZE>", uuid="<UUID>", journal_region_size="<BYTES>", data_region_size="<BYTES>" } 1

Implementations

impl StorageMetrics[src]

pub fn put_lumps(&self) -> u64[src]

ストレージに追加されたlumpの数.

Prometheus

cannyls_storage_put_lumps_total { phase="starting|running" } <COUNTER>

pub fn delete_lumps(&self) -> u64[src]

ストレージから削除されたlumpの数.

Prometheus

cannyls_storage_delete_lumps_total <COUNTER>

pub fn get_journal_lumps(&self) -> u64[src]

ジャーナル領域から取得したlumpの数.

Prometheus

cannyls_storage_get_lumps_total { region="journal" } <COUNTER>

pub fn get_data_lumps(&self) -> u64[src]

データ領域から取得したlumpの数.

Prometheus

cannyls_storage_get_lumps_total { region="data" } <COUNTER>

pub fn lumps(&self) -> usize[src]

現在のlump数.

Prometheus

cannyls_storage_put_lumps_total - cannyls_storage_delete_lumps_total

pub fn header(&self) -> &StorageHeader[src]

ストレージのヘッダ情報.

Prometheus

cannyls_storage_header { version="{MAJOR}.{MINOR}", block_size="...", uuid="...", journal_region_size="...", data_region_size="..." } 1

pub fn journal_region(&self) -> &JournalRegionMetrics[src]

ジャーナル領域のメトリクスを返す.

pub fn data_region(&self) -> &DataRegionMetrics[src]

データ領域のメトリクスを返す.

Trait Implementations

impl Clone for StorageMetrics[src]

impl Debug for StorageMetrics[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.