MCPcopy Create free account
hub / github.com/cortexproject/cortex / MaxLabelNameLength

Method MaxLabelNameLength

pkg/util/validation/limits.go:685–687  ·  view source on GitHub ↗

MaxLabelNameLength returns maximum length a label name can be.

(userID string)

Source from the content-addressed store, hash-verified

683
684// MaxLabelNameLength returns maximum length a label name can be.
685func (o *Overrides) MaxLabelNameLength(userID string) int {
686 return o.GetOverridesForUser(userID).MaxLabelNameLength
687}
688
689// MaxLabelValueLength returns maximum length a label value can be. This also is
690// the maximum length of a metric name.

Callers

nothing calls this directly

Calls 1

GetOverridesForUserMethod · 0.95

Tested by

no test coverage detected