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

Function NewHistogramVec

prometheus/promauto/auto.go:234–236  ·  view source on GitHub ↗

NewHistogramVec works like the function of the same name in the prometheus package but it automatically registers the HistogramVec with the prometheus.DefaultRegisterer. If the registration fails, NewHistogramVec panics.

(opts prometheus.HistogramOpts, labelNames []string)

Source from the content-addressed store, hash-verified

232// prometheus.DefaultRegisterer. If the registration fails, NewHistogramVec
233// panics.
234func NewHistogramVec(opts prometheus.HistogramOpts, labelNames []string) *prometheus.HistogramVec {
235 return With(prometheus.DefaultRegisterer).NewHistogramVec(opts, labelNames)
236}
237
238// NewUntypedFunc works like the function of the same name in the prometheus
239// package but it automatically registers the UntypedFunc with the

Callers

nothing calls this directly

Calls 2

WithFunction · 0.85
NewHistogramVecMethod · 0.45

Tested by

no test coverage detected