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

Function defaultGoCollectorOptions

prometheus/go_collector_latest.go:150–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148}
149
150func defaultGoCollectorOptions() internal.GoCollectorOptions {
151 return internal.GoCollectorOptions{
152 RuntimeMetricSumForHist: map[string]string{
153 "/gc/heap/allocs-by-size:bytes": goGCHeapAllocsBytes,
154 "/gc/heap/frees-by-size:bytes": goGCHeapFreesBytes,
155 },
156 RuntimeMetricRules: []internal.GoCollectorRule{
157 // Recommended metrics we want by default from runtime/metrics.
158 {Matcher: internal.GoCollectorDefaultRuntimeMetrics},
159 },
160 }
161}
162
163// NewGoCollector is the obsolete version of collectors.NewGoCollector.
164// See there for documentation.

Callers 3

NewGoCollectorFunction · 0.85
TestBatchHistogramFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestBatchHistogramFunction · 0.68