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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.