type github.com/prometheus/common/model.LabelValue
35 uses
github.com/prometheus/common/model (current package)
labels.go#L157: type LabelValue string
labels.go#L160: func (lv LabelValue) IsValid() bool {
labels.go#L165: type LabelValues []LabelValue
labels.go#L182: Value LabelValue
labelset.go#L28: type LabelSet map[LabelName]LabelValue
labelset.go#L155: var m map[LabelName]LabelValue
metric.go#L92: func IsValidMetricName(n LabelValue) bool {
silence.go#L56: } else if !LabelValue(m.Value).IsValid() || len(m.Value) == 0 {
github.com/prometheus/common/expfmt
decode.go#L93: if !model.IsValidMetricName(model.LabelValue(v.GetName())) {
decode.go#L104: if !model.LabelValue(l.GetValue()).IsValid() {
decode.go#L212: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L214: lset[model.MetricNameLabel] = model.LabelValue(f.GetName())
decode.go#L243: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L245: lset[model.MetricNameLabel] = model.LabelValue(f.GetName())
decode.go#L274: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L276: lset[model.MetricNameLabel] = model.LabelValue(f.GetName())
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#L315: lset[model.MetricNameLabel] = model.LabelValue(f.GetName())
decode.go#L326: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L328: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_sum")
decode.go#L338: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L340: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_count")
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#L373: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_bucket")
decode.go#L388: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L390: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_sum")
decode.go#L400: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L402: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_count")
decode.go#L415: lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue())
decode.go#L417: lset[model.LabelName(model.BucketLabel)] = model.LabelValue("+Inf")
decode.go#L418: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_bucket")
text_parse.go#L318: if !model.LabelValue(p.currentToken.String()).IsValid() {
github.com/prometheus/client_golang/prometheus
desc.go#L84: if !model.IsValidMetricName(model.LabelValue(fqName)) {
![]() |
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. |