Documentation ¶
Overview ¶
Package metrics ...
Index ¶
- func RegisterAll(namespace string)
- func RegisterError(errType string, err error)
- func RegisterFunction(label FunctionLabel)
- func UpdateDuration(label FunctionLabel, duration time.Duration)
- func UpdateDurationFromStart(logger *zap.Logger, label FunctionLabel, start time.Time)
- func UpdateVolumeAttachedCount(podsCount int)
- func UpdateVolumeCount(podsCount int)
- type FunctionLabel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterError ¶
RegisterError records any errors for any plugin operation.
func RegisterFunction ¶
func RegisterFunction(label FunctionLabel)
RegisterFunction records any errors for any plugin operation.
func UpdateDuration ¶
func UpdateDuration(label FunctionLabel, duration time.Duration)
UpdateDuration records the duration of the step identified by the label
func UpdateDurationFromStart ¶
func UpdateDurationFromStart(logger *zap.Logger, label FunctionLabel, start time.Time)
UpdateDurationFromStart records the duration of the step identified by the label using start time
func UpdateVolumeAttachedCount ¶
func UpdateVolumeAttachedCount(podsCount int)
UpdateVolumeAttachedCount records number of volumes currently attached in the cluster
func UpdateVolumeCount ¶
func UpdateVolumeCount(podsCount int)
UpdateVolumeCount records number of volumes currently present in the cluster
Types ¶
type FunctionLabel ¶
type FunctionLabel string
FunctionLabel is a name of CSI plugin operation for which we measure duration
Click to show internal directories.
Click to hide internal directories.