metrics

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NfsProvisionerNamespace is namespace name for provisioner metrics.
	NfsVolumeProvisionerNamespace = "nfs_volume_provisioner"

	// PersistentVolumeSubsytem is subsystem name for persistentvolume metrics.
	PersistentVolumeSubsytem = "persistentvolume"

	// Metrics
	// ProvisionerRequestCreate represents metrics related to create resource request.
	ProvisionerRequestCreate = "create"
	// ProvisionerRequestDelete represents metrics related to delete resource request.
	ProvisionerRequestDelete = "delete"

	// Labels
	Process = "process"
)

Variables

View Source
var (
	// PersistentVolumeDeleteTotal is used to collect accumulated count of persistent volumes deleted.
	PersistentVolumeDeleteTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: NfsVolumeProvisionerNamespace,
			Subsystem: PersistentVolumeSubsytem,
			Name:      "delete_total",
			Help:      "Total number of persistent volumes deleted",
		},
		[]string{Process},
	)
	// PersistentVolumeDeleteFailedTotal is used to collect accumulated count of persistent volume delete failed attempts.
	PersistentVolumeDeleteFailedTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: NfsVolumeProvisionerNamespace,
			Subsystem: PersistentVolumeSubsytem,
			Name:      "delete_failed_total",
			Help:      "Total number of persistent volume delete failed attempts",
		},
		[]string{Process},
	)
	// PersistentVolumeCreateTotal is used to collect accumulated count of persistent volume created.
	PersistentVolumeCreateTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: NfsVolumeProvisionerNamespace,
			Subsystem: PersistentVolumeSubsytem,
			Name:      "create_total",
			Help:      "Total number of persistent volumes created",
		},
		[]string{Process},
	)
	// PersistentVolumeCreateFailedTotal is used to collect accumulated count of persistent volume create requests failed.
	PersistentVolumeCreateFailedTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: NfsVolumeProvisionerNamespace,
			Subsystem: PersistentVolumeSubsytem,
			Name:      "create_failed_total",
			Help:      "Total number of persistent volume creation failed attempts",
		},
		[]string{Process},
	)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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