metrics

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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