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

Function NewMultiTRegistry

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

NewMultiTRegistry creates MultiTRegistry.

(tGatherers ...TransactionalGatherer)

Source from the content-addressed store, hash-verified

1002
1003// NewMultiTRegistry creates MultiTRegistry.
1004func NewMultiTRegistry(tGatherers ...TransactionalGatherer) *MultiTRegistry {
1005 return &MultiTRegistry{
1006 tGatherers: tGatherers,
1007 }
1008}
1009
1010// Gather implements TransactionalGatherer interface.
1011func (r *MultiTRegistry) Gather() (mfs []*dto.MetricFamily, done func(), err error) {

Callers 1

TestNewMultiTRegistryFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestNewMultiTRegistryFunction · 0.74