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

Method Collect

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

Collect implements Collector.

(ch chan<- Metric)

Source from the content-addressed store, hash-verified

125
126// Collect implements Collector.
127func (m *MetricVec) Collect(ch chan<- Metric) { m.metricMap.Collect(ch) }
128
129// Reset deletes all metrics in this vector.
130func (m *MetricVec) Reset() { m.metricMap.Reset() }

Callers

nothing calls this directly

Calls 1

CollectMethod · 0.65

Tested by

no test coverage detected