const github.com/prometheus/common/model.MetricNameLabel
16 uses
github.com/prometheus/common/model (current package)
labels.go#L34: MetricNameLabel = "__name__"
metric.go#L54: metricName, hasName := m[MetricNameLabel]
metric.go#L61: if label != MetricNameLabel {
github.com/prometheus/common/expfmt
decode.go#L214: lset[model.MetricNameLabel] = model.LabelValue(f.GetName())
decode.go#L245: lset[model.MetricNameLabel] = model.LabelValue(f.GetName())
decode.go#L276: lset[model.MetricNameLabel] = model.LabelValue(f.GetName())
decode.go#L315: lset[model.MetricNameLabel] = model.LabelValue(f.GetName())
decode.go#L328: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_sum")
decode.go#L340: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_count")
decode.go#L373: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_bucket")
decode.go#L390: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_sum")
decode.go#L402: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_count")
decode.go#L418: lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_bucket")
text_parse.go#L255: p.currentLabels[string(model.MetricNameLabel)] = p.currentMF.GetName()
text_parse.go#L285: if p.currentLabelPair.GetName() == string(model.MetricNameLabel) {
text_parse.go#L286: p.parseError(fmt.Sprintf("label name %q is reserved", model.MetricNameLabel))
![]() |
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. |