Documentation ¶
Index ¶
Constants ¶
View Source
const ( LabelNamespace = "namespace" LabelName = "name" LabelComponent = "component" )
Label constants.
Variables ¶
View Source
var ( ClusterSpecReplicas = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "tidb_operator", Subsystem: "cluster", Name: "spec_replicas", Help: "Desired replicas of each component in TidbCluster", }, []string{LabelNamespace, LabelName, LabelComponent}) )
Functions ¶
func RegisterMetrics ¶
func RegisterMetrics()
RegisterMetrics registers all metrics of tidb-operator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.