kubernetes: k8s.io/kubernetes/staging/src/k8s.io/component-base/metrics/legacyregistry Index | Files

package legacyregistry

import "k8s.io/kubernetes/staging/src/k8s.io/component-base/metrics/legacyregistry"

Index

Package Files

registry.go

Variables

var (

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

func CustomMustRegister Uses

func CustomMustRegister(cs ...metrics.StableCollector)

CustomMustRegister registers custom collectors but uses the global registry.

func CustomRegister Uses

func CustomRegister(c metrics.StableCollector) error

CustomRegister registers a custom collector but uses the global registry.

func Handler Uses

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 Uses

func MustRegister(cs ...metrics.Registerable)

MustRegister registers registerable metrics but uses the global registry.

func RawMustRegister Uses

func RawMustRegister(cs ...prometheus.Collector)

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

Deprecated

func Register Uses

func Register(c metrics.Registerable) error

Register registers a collectable metric but uses the global registry

Package legacyregistry imports 4 packages (graph). Updated 2020-02-25. Refresh now. Tools for package owners.