Type Definition prometheus::CounterVec [] [src]

type CounterVec = MetricVec<CounterVecBuilder>;

CounterVec is a Collector that bundles a set of Counters that all share the same Desc, but have different values for their variable labels. This is used if you want to count the same thing partitioned by various dimensions (e.g. number of HTTP requests, partitioned by response code and method).

Methods

impl CounterVec
[src]

[src]

new creates a new CounterVec based on the provided Opts and partitioned by the given label names. At least one label name must be provided.

[src]