metrics

package
v0.5.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetrics

func AddMetrics(gvk schema.GroupVersionKind, mgr manager.Manager, h Handler, metricFamilies []ksmetric.FamilyGenerator) error

AddMetrics add given metricFamilies for type given in gvk

func RegisterEndpoint

func RegisterEndpoint(mgr ctrl.Manager, register func(string, http.Handler) error) error

RegisterEndpoint add custom metrics endpoint to existing HTTP Listener

func RegisterHandlerFunc

func RegisterHandlerFunc(h func(manager.Manager, Handler) error)

RegisterHandlerFunc register a function to be added to endpoint when its registered

func SetLeader added in v0.4.0

func SetLeader(leaderValue bool)

SetLeader sets the edsLeader gauge

Types

type Handler

type Handler interface {
	RegisterStore(generators []ksmetric.FamilyGenerator, expectedType interface{}, lw cache.ListerWatcher) error
}

Handler use to registry controller metrics

Jump to

Keyboard shortcuts

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