monitor

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 29 Imported by: 0

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

type ClusterRegexInfo struct {
	Name      string
	Namespace string
}

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

Jump to

Keyboard shortcuts

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