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

Method Gather

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

Gather calls the Collect method of the registered Collectors and then gathers the collected metrics into a lexicographically sorted slice of uniquely named MetricFamily protobufs. Gather ensures that the returned slice is valid and self-consistent so that it can be used for valid exposition. As an e

()

Source from the content-addressed store, hash-verified

158 // expose an incomplete result and instead disregard the returned
159 // MetricFamily protobufs in case the returned error is non-nil.
160 Gather() ([]*dto.MetricFamily, error)
161}
162
163// Register registers the provided Collector with the DefaultRegisterer.

Callers 15

TestDescribeByCollectFunction · 0.65
TestWrapRegistererFunction · 0.65
TestWrapCollectorFunction · 0.65
TestProcessCollectorFunction · 0.65
WriteToTextfileFunction · 0.65
GatherMethod · 0.65
GatherMethod · 0.65
GatherMethod · 0.65
HandlerForTransactionalFunction · 0.65
assetMetricAndExemplarsFunction · 0.65

Implementers 5

tGathererprometheus/registry_test.go
Registryprometheus/registry.go
MultiTRegistryprometheus/registry.go
noTransactionGathererprometheus/registry.go
mockTransactionGathererprometheus/promhttp/http_test.go

Calls

no outgoing calls