TidbMonitor

TidbMonitor encode the spec and status of the monitoring component of a TiDB cluster

FieldDescription
apiVersion
string
pingcap.com/v1alpha1
kind
string
TidbMonitor
metadata
Kubernetes meta/v1.ObjectMeta
Refer to the Kubernetes API documentation for the fields of the metadata field.
spec
TidbMonitorSpec

Spec defines the desired state of TidbMonitor



clusters
[]TidbClusterRef
prometheus
PrometheusSpec
grafana
GrafanaSpec
(Optional)
reloader
ReloaderSpec
initializer
InitializerSpec
imagePullPolicy
Kubernetes core/v1.PullPolicy
persistent
bool
(Optional)
storageClassName
string
(Optional)
storage
string
(Optional)
nodeSelector
map[string]string
(Optional)
annotations
map[string]string
(Optional)
tolerations
[]Kubernetes core/v1.Toleration
(Optional)
kubePrometheusURL
string
(Optional)

kubePrometheusURL is where tidb-monitoring get the common metrics of kube-prometheus. Ref: https://github.com/coreos/kube-prometheus

alertmanagerURL
string
(Optional)

alertmanagerURL is where tidb-monitoring push alerts to. Ref: https://prometheus.io/docs/alerting/alertmanager/

status
TidbMonitorStatus

Most recently observed status of the TidbMonitor