metrics

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package metrics ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAll

func RegisterAll(namespace string)

RegisterAll registers all metrics.

func RegisterError

func RegisterError(errType string, err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL