type github.com/prometheus/common/model.LabelName
30 uses
github.com/prometheus/common/model (current package)
labels.go#L90: type LabelName string
labels.go#L95: func (ln LabelName) IsValid() bool {
labels.go#L108: func (ln *LabelName) UnmarshalYAML(unmarshal func(interface{}) error) error {
labels.go#L113: if !LabelName(s).IsValid() {
labels.go#L116: *ln = LabelName(s)
labels.go#L121: func (ln *LabelName) UnmarshalJSON(b []byte) error {
labels.go#L126: if !LabelName(s).IsValid() {
labels.go#L129: *ln = LabelName(s)
labels.go#L134: type LabelNames []LabelName
labels.go#L181: Name LabelName
labelset.go#L28: type LabelSet map[LabelName]LabelValue
labelset.go#L155: var m map[LabelName]LabelValue
signature.go#L100: func SignatureForLabels(m Metric, labels ...LabelName) uint64 {
signature.go#L120: func SignatureWithoutLabels(m Metric, labels map[LabelName]struct{}) uint64 {
silence.go#L25: Name LabelName `json:"name"`
github.com/prometheus/common/expfmt
decode.go#L107: if !model.LabelName(l.GetName()).IsValid() {
decode.go#L212: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L243: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L274: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L311: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L314: lset[model.LabelName(model.QuantileLabel)] = model.LabelValue(fmt.Sprint(q.GetQuantile()))
decode.go#L326: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L338: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L370: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L372: lset[model.LabelName(model.BucketLabel)] = model.LabelValue(fmt.Sprint(q.GetUpperBound()))
decode.go#L388: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L400: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L415: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L417: lset[model.LabelName(model.BucketLabel)] = model.LabelValue("+Inf")
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. |