Documentation ¶
Index ¶
Constants ¶
View Source
const ( Namespace = "vso" LabelOperation = "operation" // LabelVaultConnection usually contains the full name of VaultConnection CR. // e.g. namespace1/connection1 LabelVaultConnection = "vault_connection" OperationGet = "get" OperationStore = "store" OperationRestore = "restore" OperationRestoreAll = "restore_all" OperationPrune = "prune" OperationPurge = "purge" OperationLogin = "login" OperationRenew = "renew" OperationRead = "read" OperationWrite = "write" NameConfig = "config" NameLength = "length" NameOperationsTotal = "operations_total" NameOperationsErrorsTotal = "operations_errors_total" NameOperationsTimeSeconds = "operations_time_seconds" NameRequestsTotal = "requests_total" NameRequestsErrorsTotal = "requests_errors_total" )
MetricsNamespace should be used for all Operator metrics that are not provided by the controller-runtime.
Variables ¶
View Source
var ResourceStatus = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "controller_resource_status", Help: "Status of a resource; a value other than 1 denotes an invalid resource", }, []string{ "controller", "name", "namespace", })
Functions ¶
func NewBuildInfoGauge ¶
func NewBuildInfoGauge(info apimachineryversion.Info) prometheus.Gauge
NewBuildInfoGauge provides the Operator's build info as a Prometheus metric.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.