metrics

package
v0.0.0-...-8a63693 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Namespace is the metric namespace for all operator metrics.
	Namespace = "vitess_operator"

	// ClusterLabel is the label whose value gives the name of a VitessCluster.
	ClusterLabel = "cluster"
	// CellLabel is the label whose value gives the name of a Vitess cell.
	CellLabel = "cell"
	// KeyspaceLabel is the label whose value gives the name of a Vitess keyspace.
	KeyspaceLabel = "keyspace"
	// ShardLabel is the label whose value gives the name of a Vitess shard.
	ShardLabel = "shard"
	// BackupStorageLabel is the label whose value gives the name of a VitessBackupStorage object.
	BackupStorageLabel = "backup_storage"
	// BackupScheduleLabel is the label whose value gives the name of a VitessBackupSchedule object.
	BackupScheduleLabel = "backup_schedule"

	// ResultLabel is a common metrics label for the success/failure of an operation.
	ResultLabel = "result"
	// ResultSuccess indicates the operation succeeded.
	ResultSuccess = "success"
	// ResultError indicates an error occurred.
	ResultError = "error"
)

Variables

View Source
var Registry = metrics.Registry

Registry is the Prometheus registry for all operator metrics.

Functions

func Result

func Result(err error) string

Result returns the appropriate ResultLabel value for an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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