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

Function NewExpvarCollector

prometheus/expvar_collector.go:29–33  ·  view source on GitHub ↗

NewExpvarCollector is the obsolete version of collectors.NewExpvarCollector. See there for documentation. Deprecated: Use collectors.NewExpvarCollector instead.

(exports map[string]*Desc)

Source from the content-addressed store, hash-verified

27//
28// Deprecated: Use collectors.NewExpvarCollector instead.
29func NewExpvarCollector(exports map[string]*Desc) Collector {
30 return &expvarCollector{
31 exports: exports,
32 }
33}
34
35// Describe implements Collector.
36func (e *expvarCollector) Describe(ch chan<- *Desc) {

Callers 2

NewExpvarCollectorFunction · 0.92

Calls

no outgoing calls

Tested by 1