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

Struct metricMap

prometheus/vec.go:317–322  ·  view source on GitHub ↗

metricMap is a helper for metricVec and shared between differently curried metricVecs.

Source from the content-addressed store, hash-verified

315// metricMap is a helper for metricVec and shared between differently curried
316// metricVecs.
317type metricMap struct {
318 mtx sync.RWMutex // Protects metrics.
319 metrics map[uint64][]metricWithLabelValues
320 desc *Desc
321 newMetric func(labelValues ...string) Metric
322}
323
324// Describe implements Collector. It will send exactly one Desc to the provided
325// channel.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected