github.com/prometheus/common/expfmt.TextParser.currentMF (field)

37 uses

	github.com/prometheus/common/expfmt (current package)
		text_parse.go#L58: 	currentMF            *dto.MetricFamily
		text_parse.go#L232: 	if p.currentMF.Type == nil {
		text_parse.go#L233: 		p.currentMF.Type = dto.MetricType_UNTYPED.Enum()
		text_parse.go#L253: 	if p.currentMF.GetType() == dto.MetricType_SUMMARY || p.currentMF.GetType() == dto.MetricType_HISTOGRAM {
		text_parse.go#L255: 		p.currentLabels[string(model.MetricNameLabel)] = p.currentMF.GetName()
		text_parse.go#L281: 		p.parseError(fmt.Sprintf("invalid label name for metric %q", p.currentMF.GetName()))
		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#L326: 	if p.currentMF.GetType() == dto.MetricType_SUMMARY {
		text_parse.go#L338: 	if p.currentMF.GetType() == dto.MetricType_HISTOGRAM {
		text_parse.go#L373: 	if p.currentMF.GetType() == dto.MetricType_SUMMARY {
		text_parse.go#L379: 			p.currentMF.Metric = append(p.currentMF.Metric, p.currentMetric)
		text_parse.go#L381: 	} else if p.currentMF.GetType() == dto.MetricType_HISTOGRAM {
		text_parse.go#L387: 			p.currentMF.Metric = append(p.currentMF.Metric, p.currentMetric)
		text_parse.go#L390: 		p.currentMF.Metric = append(p.currentMF.Metric, p.currentMetric)
		text_parse.go#L401: 	switch p.currentMF.GetType() {
		text_parse.go#L447: 		p.err = fmt.Errorf("unexpected type for metric name %q", p.currentMF.GetName())
		text_parse.go#L484: 	if p.currentMF.Help != nil {
		text_parse.go#L485: 		p.parseError(fmt.Sprintf("second HELP line for metric name %q", p.currentMF.GetName()))
		text_parse.go#L492: 	p.currentMF.Help = proto.String(p.currentToken.String())
		text_parse.go#L499: 	if p.currentMF.Type != nil {
		text_parse.go#L500: 		p.parseError(fmt.Sprintf("second TYPE line for metric name %q, or TYPE reported after samples", p.currentMF.GetName()))
		text_parse.go#L512: 	p.currentMF.Type = dto.MetricType(metricType).Enum()
		text_parse.go#L671: 	if p.currentMF = p.metricFamiliesByName[name]; p.currentMF != nil {
		text_parse.go#L676: 	if p.currentMF = p.metricFamiliesByName[summaryName]; p.currentMF != nil {
		text_parse.go#L677: 		if p.currentMF.GetType() == dto.MetricType_SUMMARY {
		text_parse.go#L688: 	if p.currentMF = p.metricFamiliesByName[histogramName]; p.currentMF != nil {
		text_parse.go#L689: 		if p.currentMF.GetType() == dto.MetricType_HISTOGRAM {
		text_parse.go#L699: 	p.currentMF = &dto.MetricFamily{Name: proto.String(name)}
		text_parse.go#L700: 	p.metricFamiliesByName[name] = p.currentMF