MCPcopy Create free account
hub / github.com/netdata/netdata / setBucket

Method setBucket

src/go/pkg/prometheus/parse.go:232–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230}
231
232func (p *promTextParser) setBucket() {
233 if lbs, v, ok := removeLabel(p.currSeries, bucketLabel); ok {
234 p.isBucket = true
235 p.currSeries = lbs
236 p.currBucket, _ = strconv.ParseFloat(v, 64)
237 }
238}
239
240func (p *promTextParser) addGauge(value float64) {
241 p.currSeries, _, _ = removeLabel(p.currSeries, labels.MetricName)

Callers 1

Calls 1

removeLabelFunction · 0.85

Tested by

no test coverage detected