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)