metrics

package
v1.5.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConfigMapResourceType = "configmap"
	NodeResourceType      = "node"

	GetOpType    = "get"
	CreateOpType = "create"
	UpdateOpType = "update"
	ListOpType   = "list"

	NodeStageOpSource   = "node_stage_volume"
	NodeUnstageOpSource = "node_unstage_volume"
	ReconcilerOpSource  = "lock_release_reconciler"
)

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) RecordKubeAPIMetrics added in v1.5.2

func (mm *MetricsManager) RecordKubeAPIMetrics(opErr error, resourceType, opType, opSource string, opDuration time.Duration)

func (*MetricsManager) RecordLockReleaseMetrics added in v1.5.2

func (mm *MetricsManager) RecordLockReleaseMetrics(opErr error)

func (*MetricsManager) RecordOperationMetrics added in v1.2.0

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

func (*MetricsManager) RegisterKubeAPIDurationMetric added in v1.5.2

func (mm *MetricsManager) RegisterKubeAPIDurationMetric()

func (*MetricsManager) RegisterLockReleaseCountnMetric added in v1.5.2

func (mm *MetricsManager) RegisterLockReleaseCountnMetric()

func (*MetricsManager) RegisterOperationSecondsMetric added in v1.5.2

func (mm *MetricsManager) RegisterOperationSecondsMetric()

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