github.com/prometheus/common/model.LabelName.IsValid (method)
8 uses
github.com/prometheus/common/model (current package)
labels.go#L95: func (ln LabelName) IsValid() bool {
labels.go#L113: if !LabelName(s).IsValid() {
labels.go#L126: if !LabelName(s).IsValid() {
labelset.go#L34: if !ln.IsValid() {
labelset.go#L163: if !ln.IsValid() {
silence.go#L49: if !m.Name.IsValid() {
github.com/prometheus/common/expfmt
decode.go#L107: if !model.LabelName(l.GetName()).IsValid() {
github.com/prometheus/client_golang/prometheus
labels.go#L86: return model.LabelName(l).IsValid() && !strings.HasPrefix(l, reservedLabelPrefix)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |