metrics

package
v1.3.5-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGKEComponentVersionAvailable

func IsGKEComponentVersionAvailable() bool

Types

type MetricsManager added in v1.2.0

type MetricsManager struct {
	// contains filtered or unexported fields
}

func NewMetricsManager

func NewMetricsManager() *MetricsManager

func (*MetricsManager) EmitGKEComponentVersion added in v1.2.0

func (mm *MetricsManager) EmitGKEComponentVersion() error

func (*MetricsManager) GetRegistry added in v1.2.0

func (mm *MetricsManager) GetRegistry() metrics.KubeRegistry

func (*MetricsManager) InitializeHttpHandler added in v1.2.0

func (mm *MetricsManager) InitializeHttpHandler(address, path string)

InitializeHttpHandler sets up a server and creates a handler for metrics.

func (*MetricsManager) RecordOperationMetrics added in v1.2.0

func (mm *MetricsManager) RecordOperationMetrics(opErr error, methodName string, filestoreMode string, opDuration time.Duration)

type Server

type Server interface {
	Handle(pattern string, handler http.Handler)
}

Server represents any type that could serve HTTP requests for the metrics endpoint.

Jump to

Keyboard shortcuts

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