MCPcopy
hub / github.com/prometheus/client_golang / CounterVec

Struct CounterVec

prometheus/counter.go:188–190  ·  view source on GitHub ↗

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). Crea

Source from the content-addressed store, hash-verified

186// (e.g. number of HTTP requests, partitioned by response code and
187// method). Create instances with NewCounterVec.
188type CounterVec struct {
189 *MetricVec
190}
191
192// NewCounterVec creates a new CounterVec based on the provided CounterOpts and
193// partitioned by the given label names.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected