MCPcopy
hub / github.com/prometheus/client_golang / checkLabelName

Function checkLabelName

prometheus/labels.go:186–189  ·  view source on GitHub ↗
(l string)

Source from the content-addressed store, hash-verified

184}
185
186func checkLabelName(l string) bool {
187 //nolint:staticcheck // TODO: Don't use deprecated model.NameValidationScheme.
188 return model.NameValidationScheme.IsValidLabelName(l) && !strings.HasPrefix(l, reservedLabelPrefix)
189}

Callers 3

newExemplarFunction · 0.85
NewDescMethod · 0.85
checkMetricConsistencyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected