github.com/prometheus/common/expfmt.TextParser.currentLabelPair (field)
18 uses
github.com/prometheus/common/expfmt (current package)
text_parse.go#L60: currentLabelPair *dto.LabelPair
text_parse.go#L284: p.currentLabelPair = &dto.LabelPair{Name: proto.String(p.currentToken.String())}
text_parse.go#L285: if p.currentLabelPair.GetName() == string(model.MetricNameLabel) {
text_parse.go#L291: if !(p.currentMF.GetType() == dto.MetricType_SUMMARY && p.currentLabelPair.GetName() == model.QuantileLabel) &&
text_parse.go#L292: !(p.currentMF.GetType() == dto.MetricType_HISTOGRAM && p.currentLabelPair.GetName() == model.BucketLabel) {
text_parse.go#L293: p.currentMetric.Label = append(p.currentMetric.Label, p.currentLabelPair)
text_parse.go#L322: p.currentLabelPair.Value = proto.String(p.currentToken.String())
text_parse.go#L327: if p.currentLabelPair.GetName() == model.QuantileLabel {
text_parse.go#L328: if p.currentQuantile, p.err = parseFloat(p.currentLabelPair.GetValue()); p.err != nil {
text_parse.go#L330: p.parseError(fmt.Sprintf("expected float as value for 'quantile' label, got %q", p.currentLabelPair.GetValue()))
text_parse.go#L334: p.currentLabels[p.currentLabelPair.GetName()] = p.currentLabelPair.GetValue()
text_parse.go#L339: if p.currentLabelPair.GetName() == model.BucketLabel {
text_parse.go#L340: if p.currentBucket, p.err = parseFloat(p.currentLabelPair.GetValue()); p.err != nil {
text_parse.go#L342: p.parseError(fmt.Sprintf("expected float as value for 'le' label, got %q", p.currentLabelPair.GetValue()))
text_parse.go#L346: p.currentLabels[p.currentLabelPair.GetName()] = p.currentLabelPair.GetValue()
text_parse.go#L362: p.parseError(fmt.Sprintf("unexpected end of label value %q", p.currentLabelPair.GetValue()))
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |