We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 913f67e + aa6eadd commit 110f6d4Copy full SHA for 110f6d4
prometheus/vec.go
@@ -91,6 +91,18 @@ func (m *metricVec) Delete(labels Labels) bool {
91
return m.metricMap.deleteByHashWithLabels(h, labels, m.curry)
92
}
93
94
+// Without explicit forwarding of Describe, Collect, Reset, those methods won't
95
+// show up in GoDoc.
96
+
97
+// Describe implements Collector.
98
+func (m *metricVec) Describe(ch chan<- *Desc) { m.metricMap.Describe(ch) }
99
100
+// Collect implements Collector.
101
+func (m *metricVec) Collect(ch chan<- Metric) { m.metricMap.Collect(ch) }
102
103
+// Reset deletes all metrics in this vector.
104
+func (m *metricVec) Reset() { m.metricMap.Reset() }
105
106
func (m *metricVec) curryWith(labels Labels) (*metricVec, error) {
107
var (
108
newCurry []curriedLabelValue
0 commit comments