MCPcopy
hub / github.com/prometheus/client_golang / rm2prom

Function rm2prom

prometheus/collectors/gen_go_collector_set.go:151–157  ·  view source on GitHub ↗
(d metrics.Description)

Source from the content-addressed store, hash-verified

149}
150
151func rm2prom(d metrics.Description) string {
152 ns, ss, n, ok := internal.RuntimeMetricsToProm(&d)
153 if !ok {
154 return ""
155 }
156 return prometheus.BuildFQName(ns, ss, n)
157}
158
159func groupMetrics(metricsList []string) []metricGroup {
160 var groupedMetrics []metricGroup

Callers 1

computeMetricsListFunction · 0.85

Calls 2

RuntimeMetricsToPromFunction · 0.92
BuildFQNameFunction · 0.92

Tested by

no test coverage detected