metrics

package
v1.15.3-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDiskTypeForMetric         = "unknownDiskType"
	DefaultEnableConfidentialCompute = "unknownConfidentialMode"
	DefaultEnableStoragePools        = "unknownStoragePools"
)

Variables

This section is empty.

Functions

func IsGKEComponentVersionAvailable

func IsGKEComponentVersionAvailable() bool

func UpdateRequestMetadataFromDisk added in v1.15.3

func UpdateRequestMetadataFromDisk(ctx context.Context, disk *gce.CloudDisk)

func UpdateRequestMetadataFromParams added in v1.15.3

func UpdateRequestMetadataFromParams(ctx context.Context, params common.DiskParameters)

Types

type MetricInterceptor added in v1.15.3

type MetricInterceptor struct {
	MetricsManager *MetricsManager
}

func (*MetricInterceptor) UnaryInterceptor added in v1.15.3

func (m *MetricInterceptor) UnaryInterceptor() grpc.UnaryServerInterceptor

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(
	fullMethodName string,
	operationErr error,
	diskType string,
	enableConfidentialStorage string,
	enableStoragePools string)

func (*MetricsManager) RegisterPDCSIMetric added in v1.7.10

func (mm *MetricsManager) RegisterPDCSIMetric()

func (*MetricsManager) ResetMetrics added in v1.15.3

func (mm *MetricsManager) ResetMetrics()

Test-only method used for resetting metric counts.

type RequestMetadata added in v1.15.3

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

RequestMetadata represents metadata about a gRPC CSI request

func MetadataFromContext added in v1.15.3

func MetadataFromContext(ctx context.Context) *RequestMetadata

MetadataFromContext returns a mutable from a request context

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