github.com/prometheus/client_model/go.MetricFamily.GetName (method)
29 uses
github.com/prometheus/client_model/go (current package)
metrics.pb.go#L546: func (m *MetricFamily) GetName() string {
github.com/prometheus/client_golang/prometheus
registry.go#L678: metricFamily.GetName(), dtoMetric, desc,
registry.go#L727: existingMF, exists := metricFamiliesByName[mf.GetName()]
registry.go#L732: mf.GetName(), mf.GetHelp(), existingMF.GetHelp(),
registry.go#L739: mf.GetName(), mf.GetType(), existingMF.GetType(),
registry.go#L752: metricFamiliesByName[mf.GetName()] = existingMF
registry.go#L771: newName = mf.GetName()
registry.go#L835: name := metricFamily.GetName()
registry.go#L917: metricFamily.GetName(), dtoMetric, metricFamily.GetHelp(), desc.help,
registry.go#L932: metricFamily.GetName(), dtoMetric, desc,
registry.go#L942: metricFamily.GetName(), dtoMetric, desc,
github.com/prometheus/common/expfmt
decode.go#L93: if !model.IsValidMetricName(model.LabelValue(v.GetName())) {
decode.go#L94: return fmt.Errorf("invalid metric name %q", v.GetName())
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_create.go#L72: name := in.GetName()
text_parse.go#L255: p.currentLabels[string(model.MetricNameLabel)] = p.currentMF.GetName()
text_parse.go#L281: p.parseError(fmt.Sprintf("invalid label name for metric %q", p.currentMF.GetName()))
text_parse.go#L447: p.err = fmt.Errorf("unexpected type for metric name %q", p.currentMF.GetName())
text_parse.go#L485: p.parseError(fmt.Sprintf("second HELP line for metric name %q", p.currentMF.GetName()))
text_parse.go#L500: p.parseError(fmt.Sprintf("second TYPE line for metric name %q, or TYPE reported after samples", p.currentMF.GetName()))
 |
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. |