Struct prometheus::Opts [] [src]

pub struct Opts {
    pub namespace: String,
    pub sub_system: String,
    pub name: String,
    pub help: String,
    pub const_labels: HashMap<StringString>,
}

Opts bundles the options for creating most Metric types.

Fields

Methods

impl Opts
[src]

new creates the Opts with the name and help arguments.

namespace sets the namespace.

sub_system sets the sub system.

const_labels sets the const labels.

const_label adds a const label.

fq_name returns the fq_name.

Trait Implementations

impl Debug for Opts
[src]

Formats the value using the given formatter.