monitor

package
v1.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 34 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 RenderPrometheusConfig

func RenderPrometheusConfig(model *MonitorConfigModel) (string, error)

Types

type MonitorConfigModel

type MonitorConfigModel struct {
	AlertmanagerURL    string
	ReleaseNamespaces  []string
	ReleaseTargetRegex *config.Regexp
	EnableTLSCluster   bool
}

type MonitorManager

type MonitorManager struct {
	// contains filtered or unexported fields
}

func NewMonitorManager

func NewMonitorManager(
	kubeCli kubernetes.Interface,
	informerFactory informers.SharedInformerFactory,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	typedControl controller.TypedControlInterface,
	recorder record.EventRecorder) *MonitorManager

func (*MonitorManager) Sync

func (mm *MonitorManager) Sync(monitor *v1alpha1.TidbMonitor) error

Jump to

Keyboard shortcuts

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