metrics

package
v1.7.13-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDiskType added in v1.7.10

func GetDiskType(disk *gce.CloudDisk) string

func IsGKEComponentVersionAvailable

func IsGKEComponentVersionAvailable() bool

Types

type MetricsManager added in v1.7.10

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

func NewMetricsManager

func NewMetricsManager() MetricsManager

func (*MetricsManager) EmitGKEComponentVersion added in v1.7.10

func (mm *MetricsManager) EmitGKEComponentVersion() error

func (*MetricsManager) GetRegistry added in v1.7.10

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

func (*MetricsManager) InitializeHttpHandler added in v1.7.10

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

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

func (*MetricsManager) RecordOperationErrorMetrics added in v1.7.10

func (mm *MetricsManager) RecordOperationErrorMetrics(
	operationName string,
	operationErr error,
	diskType string)

func (*MetricsManager) RegisterPDCSIMetric added in v1.7.10

func (mm *MetricsManager) RegisterPDCSIMetric()

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