pub struct Prometheus { /* fields omitted */ }
Prometheus output holds a socket to a Prometheus server.
The socket is shared between scopes opened from the output.
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
Return a clone with the specified buffering set.
The type of Scope returned byt this output.
Open a new scope from this output.
Wrap this output with an asynchronous dispatch queue of specified length.
Wrap this output with an asynchronous dispatch queue.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static