metrics

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertificateRequestCollector

func NewCertificateRequestCollector(nodeNameHash string, metadataReader storage.MetadataReader, certificateRequestLister cmlisters.CertificateRequestLister) prometheus.Collector

Types

type CertificateRequestCollector

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

func (*CertificateRequestCollector) Collect

func (cc *CertificateRequestCollector) Collect(ch chan<- prometheus.Metric)

func (*CertificateRequestCollector) Describe

func (cc *CertificateRequestCollector) Describe(ch chan<- *prometheus.Desc)

type Metrics

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

Metrics is designed to be a shared object for updating the metrics exposed by csi-lib

func New

func New(
	nodeId string,
	logger *logr.Logger,
	registry *prometheus.Registry,
	metadataReader storage.MetadataReader,
	certificateRequestLister cmlisters.CertificateRequestLister,
) *Metrics

New creates a Metrics struct and populates it with prometheus metric types.

func (*Metrics) DefaultHandler

func (m *Metrics) DefaultHandler() http.Handler

DefaultHandler returns a default prometheus metrics HTTP handler

func (*Metrics) IncrementIssueCallCountTotal

func (m *Metrics) IncrementIssueCallCountTotal(nodeNameHash, volumeID string)

IncrementIssueCallCountTotal will increase the issue call counter for the driver.

func (*Metrics) IncrementIssueErrorCountTotal

func (m *Metrics) IncrementIssueErrorCountTotal(nodeNameHash, volumeID string)

IncrementIssueErrorCountTotal will increase count of errors during issue call of the driver.

Jump to

Keyboard shortcuts

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