Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultGatherer exposes the global registry gatherer DefaultGatherer metrics.Gatherer = defaultRegistry // Reset calls reset on the global registry Reset = defaultRegistry.Reset // MustRegister registers registerable metrics but uses the global registry. MustRegister = defaultRegistry.MustRegister // RawMustRegister registers prometheus collectors but uses the global registry, this // bypasses the metric stability framework // // Deprecated RawMustRegister = defaultRegistry.RawMustRegister // Register registers a collectable metric but uses the global registry Register = defaultRegistry.Register )
Functions ¶
func CustomMustRegister ¶
func CustomMustRegister(cs ...metrics.StableCollector)
CustomMustRegister registers custom collectors but uses the global registry.
func CustomRegister ¶
func CustomRegister(c metrics.StableCollector) error
CustomRegister registers a custom collector but uses the global registry.
func Handler
deprecated
Handler returns an HTTP handler for the DefaultGatherer. It is already instrumented with InstrumentHandler (using "prometheus" as handler name).
Deprecated: Please note the issues described in the doc comment of InstrumentHandler. You might want to consider using promhttp.Handler instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.