prometheus

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PrometheusBlockVolumeType represents the block volume type.
	PrometheusBlockVolumeType = "block"
	// PrometheusFileVolumeType represents the file volume type.
	PrometheusFileVolumeType = "file"
	// PrometheusUnknownVolumeType is used in situation when the volume type could not be found.
	PrometheusUnknownVolumeType = "unknown"

	// PrometheusCreateVolumeOpType represents the CreateVolume operation.
	PrometheusCreateVolumeOpType = "create-volume"
	// PrometheusDeleteVolumeOpType represents the DeleteVolume operation.
	PrometheusDeleteVolumeOpType = "delete-volume"
	// PrometheusAttachVolumeOpType represents the AttachVolume operation.
	PrometheusAttachVolumeOpType = "attach-volume"
	// PrometheusDetachVolumeOpType represents the DetachVolume operation.
	PrometheusDetachVolumeOpType = "detach-volume"
	// PrometheusExpandVolumeOpType represents the ExpandVolume operation.
	PrometheusExpandVolumeOpType = "expand-volume"
	// PrometheusCreateSnapshotOpType represents CreateSnapshot operation.
	PrometheusCreateSnapshotOpType = "create-snapshot"
	// PrometheusDeleteSnapshotOpType represents DeleteSnapshot operation.
	PrometheusDeleteSnapshotOpType = "delete-snapshot"
	// PrometheusListSnapshotsOpType represents the ListSnapshots operation.
	PrometheusListSnapshotsOpType = "list-snapshot"
	// PrometheusListVolumeOpType represents the ListVolumes operation.
	PrometheusListVolumeOpType = "list-volume"

	// PrometheusCnsCreateVolumeOpType represents the CreateVolume operation.
	PrometheusCnsCreateVolumeOpType = "create-volume"
	// PrometheusCnsDeleteVolumeOpType represents the DeleteVolume operation.
	PrometheusCnsDeleteVolumeOpType = "delete-volume"
	// PrometheusCnsAttachVolumeOpType represents the AttachVolume operation.
	PrometheusCnsAttachVolumeOpType = "attach-volume"
	// PrometheusCnsDetachVolumeOpType represents the DetachVolume operation.
	PrometheusCnsDetachVolumeOpType = "detach-volume"
	// PrometheusCnsUpdateVolumeMetadataOpType represents the UpdateVolumeMetadata operation.
	PrometheusCnsUpdateVolumeMetadataOpType = "update-volume-metadata"
	// PrometheusCnsExpandVolumeOpType represents the ExpandVolume operation.
	PrometheusCnsExpandVolumeOpType = "expand-volume"
	// PrometheusCnsQueryVolumeOpType represents the QueryVolume operation.
	PrometheusCnsQueryVolumeOpType = "query-volume"
	// PrometheusCnsQueryAllVolumeOpType represents the QueryAllVolume operation.
	PrometheusCnsQueryAllVolumeOpType = "query-all-volume"
	// PrometheusCnsQueryVolumeInfoOpType represents the QueryVolumeInfo operation.
	PrometheusCnsQueryVolumeInfoOpType = "query-volume-info"
	// PrometheusCnsRelocateVolumeOpType represents the RelocateVolume operation.
	PrometheusCnsRelocateVolumeOpType = "relocate-volume"
	// PrometheusCnsConfigureVolumeACLOpType represents the ConfigureVolumeAcl operation.
	PrometheusCnsConfigureVolumeACLOpType = "configure-volume-acl"
	// PrometheusQuerySnapshotsOpType represents QuerySnapshots operation.
	PrometheusQuerySnapshotsOpType = "query-snapshots"
	// PrometheusCnsCreateSnapshotOpType represents CreateSnapshot operation.
	PrometheusCnsCreateSnapshotOpType = "create-snapshot"
	// PrometheusCnsDeleteSnapshotOpType represents DeleteSnapshot operation.
	PrometheusCnsDeleteSnapshotOpType = "delete-snapshot"
	// PrometheusAccessibleVolumes represents accessible volumes.
	PrometheusAccessibleVolumes = "accessible-volumes"
	// PrometheusInaccessibleVolumes represents inaccessible volumes.
	PrometheusInaccessibleVolumes = "inaccessible-volumes"

	// PrometheusPassStatus represents a successful API run.
	PrometheusPassStatus = "pass"
	// PrometheusFailStatus represents an unsuccessful API run.
	PrometheusFailStatus = "fail"
)

Variables

View Source
var (
	// CsiInfo is a gauge metric to observe the CSI version.
	CsiInfo = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "vsphere_csi_info",
		Help: "CSI Info",
	}, []string{"version"})

	// SyncerInfo is a gauge metric to observe the CSI version.
	SyncerInfo = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "vsphere_syncer_info",
		Help: "Syncer Info",
	}, []string{"version"})

	// CsiControlOpsHistVec is a histogram vector metric to observe various control
	// operations in CSI.
	CsiControlOpsHistVec = promauto.NewHistogramVec(prometheus.HistogramOpts{
		Name: "vsphere_csi_volume_ops_histogram",
		Help: "Histogram vector for CSI volume operations.",

		Buckets: []float64{2, 5, 10, 15, 20, 25, 30, 60, 120, 180},
	},

		[]string{"voltype", "optype", "status", "faulttype"})

	// CnsControlOpsHistVec is a histogram vector metric to observe various control
	// operations on CNS. Note that this captures the time taken by CNS into a bucket
	// as seen by the client(CSI in this case).
	CnsControlOpsHistVec = promauto.NewHistogramVec(prometheus.HistogramOpts{
		Name: "vsphere_cns_volume_ops_histogram",
		Help: "Histogram vector for CNS operations.",

		Buckets: []float64{2, 5, 10, 15, 20, 25, 30, 60, 120, 180},
	},

		[]string{"optype", "status"})

	// VolumeHealthGaugeVec is a gauge metric to observe the number of accessible and inaccessible volumes.
	VolumeHealthGaugeVec = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name: "vsphere_volume_health_gauge",
		Help: "Gauge for total number of accessible and inaccessible volumes",
	},

		[]string{"volume_health_type"})

	// FullSyncOpsHistVec is a histogram vector metric to observe CSI Full Sync.
	FullSyncOpsHistVec = promauto.NewHistogramVec(prometheus.HistogramOpts{
		Name: "vsphere_full_sync_ops_histogram",
		Help: "Histogram vector for CSI Full Sync operations.",

		Buckets: []float64{2, 5, 10, 15, 20, 25, 30, 60, 120, 180},
	},

		[]string{"status"})
)

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