Documentation
¶
Index ¶
Constants ¶
View Source
const ( FailedSync = "FailedSync" SuccessSync = "SuccessSync" )
Variables ¶
This section is empty.
Functions ¶
func GetMonitorObjectName ¶
func GetMonitorObjectName(monitor *v1alpha1.TidbMonitor) string
func GetMonitorObjectNameCrossNamespace ¶ added in v1.1.6
func GetMonitorObjectNameCrossNamespace(monitor *v1alpha1.TidbMonitor) string
func RenderPrometheusConfig ¶
func RenderPrometheusConfig(model *MonitorConfigModel) (string, error)
Types ¶
type ClusterRegexInfo ¶ added in v1.1.8
ClusterRegexInfo is the monitor cluster info
type MonitorConfigModel ¶
type MonitorConfigModel struct {
AlertmanagerURL string
ClusterInfos []ClusterRegexInfo
EnableTLSCluster bool
}
type MonitorManager ¶
type MonitorManager struct {
// contains filtered or unexported fields
}
func NewMonitorManager ¶
func NewMonitorManager(deps *controller.Dependencies) *MonitorManager
func (*MonitorManager) SyncMonitor ¶
func (m *MonitorManager) SyncMonitor(monitor *v1alpha1.TidbMonitor) error
Click to show internal directories.
Click to hide internal directories.