[][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]

impl CachedOutput for Prometheus[src]

impl Clone for Prometheus[src]

impl Debug for Prometheus[src]

impl Output for Prometheus[src]

type SCOPE = PrometheusScope

The type of Scope returned byt this output.

impl QueuedOutput for Prometheus[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> 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.