Documentation ¶
Index ¶
- Constants
- func IsGKEComponentVersionAvailable() bool
- type MetricsManager
- func (mm *MetricsManager) EmitGKEComponentVersion() error
- func (mm *MetricsManager) GetRegistry() metrics.KubeRegistry
- func (mm *MetricsManager) InitializeHttpHandler(address, path string)
- func (mm *MetricsManager) RecordKubeAPIMetrics(opErr error, resourceType, opType, opSource string, opDuration time.Duration)
- func (mm *MetricsManager) RecordLockReleaseMetrics(opErr error)
- func (mm *MetricsManager) RecordOperationMetrics(opErr error, methodName string, filestoreMode string, opDuration time.Duration)
- func (mm *MetricsManager) RegisterKubeAPIDurationMetric()
- func (mm *MetricsManager) RegisterLockReleaseCountnMetric()
- func (mm *MetricsManager) RegisterOperationSecondsMetric()
- type Server
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 (*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()
Click to show internal directories.
Click to hide internal directories.