MCPcopy Create free account
hub / github.com/prometheus/common / NewTextParser

Function NewTextParser

expfmt/text_parse.go:89–91  ·  view source on GitHub ↗

NewTextParser returns a new TextParser with the provided nameValidationScheme.

(nameValidationScheme model.ValidationScheme)

Source from the content-addressed store, hash-verified

87
88// NewTextParser returns a new TextParser with the provided nameValidationScheme.
89func NewTextParser(nameValidationScheme model.ValidationScheme) TextParser {
90 return TextParser{scheme: nameValidationScheme}
91}
92
93// TextToMetricFamilies reads 'in' as the simple and flat text-based exchange
94// format and creates MetricFamily proto messages. It returns the MetricFamily

Callers 4

TestNewTextParserFunction · 0.85
FuzzFunction · 0.85
DecodeMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestNewTextParserFunction · 0.68