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

Function bestEffortLookupRM

prometheus/go_collector_latest.go:82–92  ·  view source on GitHub ↗
(lookup []string)

Source from the content-addressed store, hash-verified

80}
81
82func bestEffortLookupRM(lookup []string) []metrics.Description {
83 ret := make([]metrics.Description, 0, len(lookup))
84 for _, rm := range metrics.All() {
85 for _, m := range lookup {
86 if m == rm.Name {
87 ret = append(ret, rm)
88 }
89 }
90 }
91 return ret
92}
93
94type goCollector struct {
95 base baseGoCollector

Callers 3

NewGoCollectorFunction · 0.85
TestRmForMemStatsFunction · 0.85
TestMemStatsEquivalenceFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestRmForMemStatsFunction · 0.68
TestMemStatsEquivalenceFunction · 0.68