[][src]Struct dipstick::Prometheus

pub struct Prometheus { /* fields omitted */ }

Prometheus output holds a socket to a Prometheus server. The socket is shared between scopes opened from the output.

Methods

impl Prometheus
[src]

pub fn push_to(url: &str) -> Result<Prometheus>
[src]

Send metrics to a Prometheus "push gateway" at the URL provided. URL path must include group identifier labels job as shown in https://github.com/prometheus/pushgateway#command-line For example http://pushgateway.example.org:9091/metrics/job/some_job

Trait Implementations

impl Buffered for Prometheus
[src]

fn buffered(&self, buffering: Buffering) -> Self
[src]

Return a clone with the specified buffering set.

fn get_buffering(&self) -> Option<Buffering>
[src]

Return the buffering.

impl Output for Prometheus
[src]

type SCOPE = PrometheusScope

The type of Scope returned byt this output.

impl CachedOutput for Prometheus
[src]

fn cached(self, max_size: usize) -> OutputCache
[src]

Wrap this output with an asynchronous dispatch queue of specified length.

impl QueuedOutput for Prometheus
[src]

fn queued(self, max_size: usize) -> OutputQueue
[src]

Wrap this output with an asynchronous dispatch queue.

impl Clone for Prometheus
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Prometheus
[src]

Auto Trait Implementations

impl Send for Prometheus

impl Sync for Prometheus

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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