legacyregistry

package
v0.16.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 405

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DefaultGatherer exposes the global registry gatherer
	DefaultGatherer prometheus.Gatherer = defaultRegistry
)

Functions

func Handler deprecated added in v0.16.4

func Handler() http.Handler

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.

func MustRegister

func MustRegister(cs ...metrics.Registerable)

MustRegister registers registerable metrics but uses the global registry.

func RawMustRegister added in v0.16.4

func RawMustRegister(cs ...prometheus.Collector)

RawMustRegister registers prometheus collectors but uses the global registry, this bypasses the metric stability framework

Deprecated

func RawRegister added in v0.16.4

func RawRegister(c prometheus.Collector) error

RawRegister registers a prometheus collector but uses the global registry, this bypasses the metric stability framework

Deprecated

func Register

func Register(c metrics.Registerable) error

Register registers a collectable metric but uses the global registry

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL