Struct prometheus::Gauge [] [src]

pub struct Gauge {
    // some fields omitted
}

Gauge is a Metric that represents a single numerical value that can arbitrarily go up and down.

Methods

impl Gauge
[src]

new create a Guage with the name and help arguments.

with_opts create a Guage with the opts options.

impl Gauge
[src]

inc increments the gauge by 1.

dec decrements the gauge by 1.

get returns the gauge value.

Trait Implementations

impl Clone for Gauge
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Collector for Gauge
[src]

desc returns the descriptor for the metric collector.

collect collects the metric.