Trait kumo_prometheus::registry::StreamingCollector

source ·
pub trait StreamingCollector {
    // Required methods
    fn stream_text(&self, prefix: &Option<String>) -> BoxStream<'_, String>;
    fn stream_json(&self) -> BoxStream<'_, String>;
    fn prune(&self);
}

Required Methods§

source

fn stream_text(&self, prefix: &Option<String>) -> BoxStream<'_, String>

Stream chunks of text in prometheus text exposition format

source

fn stream_json(&self) -> BoxStream<'_, String>

Stream chunks in our json format, as chunks of text

source

fn prune(&self)

Prune any stale entries from this collector

Implementors§