File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -514,11 +514,12 @@ func (c *Collector) Run() error {
514514 labelValues = append (labelValues , split [1 ])
515515 }
516516
517- mutableState := & metricState {seriesCount : c .cfg .SeriesCount }
517+ mutableState := & metricState {seriesCount : c .cfg .SeriesCount , labelValues : labelValues }
518518 // unsafe means you need to lock c.mu to use it.
519519 unsafeReadOnlyGetState := func () metricState { return * mutableState }
520520
521521 c .mu .Lock () // Just to make race detector happy, not really needed in practice.
522+ c .labelKeys = labelKeys
522523 c .gauges = make ([]* prometheus.GaugeVec , c .cfg .GaugeMetricCount )
523524 c .counters = make ([]* prometheus.CounterVec , c .cfg .CounterMetricCount )
524525 c .histograms = make ([]* prometheus.HistogramVec , c .cfg .HistogramMetricCount )
You can’t perform that action at this time.
0 commit comments