package legacyregistry
import "k8s.io/component-base/metrics/legacyregistry"
Index ¶
- Variables
- func Handler() http.Handler
- func MustRegister(cs ...metrics.Registerable)
- func RawMustRegister(cs ...prometheus.Collector)
- func RawRegister(c prometheus.Collector) error
- func Register(c metrics.Registerable) error
Variables ¶
var ( // DefaultGatherer exposes the global registry gatherer DefaultGatherer prometheus.Gatherer = defaultRegistry )
Functions ¶
func 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 ¶
func RawMustRegister(cs ...prometheus.Collector)
RawMustRegister registers prometheus collectors but uses the global registry, this bypasses the metric stability framework
Deprecated
func RawRegister ¶
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
Source Files ¶
registry.go
- Version
- v0.16.8
- Published
- Mar 13, 2020
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 8 seconds ago –
Tools for package owners.