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

Method Unregister

prometheus/registry.go:133–133  ·  view source on GitHub ↗

Unregister unregisters the Collector that equals the Collector passed in as an argument. (Two Collectors are considered equal if their Describe method yields the same set of descriptors.) The function returns whether a Collector was unregistered. Note that an unchecked Collector cannot be unregiste

(Collector)

Source from the content-addressed store, hash-verified

131 // instance must only collect consistent metrics throughout its
132 // lifetime.
133 Unregister(Collector) bool
134}
135
136// Gatherer is the interface for the part of a registry in charge of gathering

Callers 3

UnregisterMethod · 0.65
TestWrapCollectorFunction · 0.65
UnregisterFunction · 0.65

Implementers 2

wrappingRegistererprometheus/wrap.go
Registryprometheus/registry.go

Calls

no outgoing calls

Tested by 1

TestWrapCollectorFunction · 0.52