metrics

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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