MCPcopy Create free account
hub / github.com/prometheus/prometheus / parseError

Method parseError

model/textparse/openmetricsparse.go:438–441  ·  view source on GitHub ↗
(exp string, got token)

Source from the content-addressed store, hash-verified

436}
437
438func (p *OpenMetricsParser) parseError(exp string, got token) error {
439 e := min(len(p.l.b), p.l.i+1)
440 return fmt.Errorf("%s, got %q (%q) while parsing: %q", exp, p.l.b[p.l.start:e], got, p.l.b[p.start:e])
441}
442
443// Next advances the parser to the next sample.
444// It returns (EntryInvalid, io.EOF) if no samples were read.

Callers 5

NextMethod · 0.95
parseCommentMethod · 0.95
parseLValsMethod · 0.95
parseSeriesEndOfLineMethod · 0.95
getFloatValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected