Documentation ¶
Index ¶
- Constants
- func IsGKEComponentVersionAvailable() bool
- func UpdateRequestMetadataFromDisk(ctx context.Context, disk *gce.CloudDisk)
- func UpdateRequestMetadataFromParams(ctx context.Context, params common.DiskParameters)
- type MetricInterceptor
- type MetricsManager
- func (mm *MetricsManager) EmitGKEComponentVersion() error
- func (mm *MetricsManager) GetRegistry() metrics.KubeRegistry
- func (mm *MetricsManager) InitializeHttpHandler(address, path string)
- func (mm *MetricsManager) RecordOperationErrorMetrics(fullMethodName string, operationErr error, diskType string, ...)
- func (mm *MetricsManager) RegisterPDCSIMetric()
- func (mm *MetricsManager) ResetMetrics()
- type RequestMetadata
- type Server
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 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 (*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
Click to show internal directories.
Click to hide internal directories.