alertmanager

package
v0.0.0-...-830b495 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: BSD-3-Clause, Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListOptions

func ListOptions(name string) metav1.ListOptions

func NewAlertmanagerCollector

func NewAlertmanagerCollector(s cache.Store) *alertmanagerCollector

Types

type Config

type Config struct {
	Host                         string
	LocalHost                    string
	ConfigReloaderImage          string
	ConfigReloaderCPU            string
	ConfigReloaderMemory         string
	AlertmanagerDefaultBaseImage string
	Namespaces                   []string
	Labels                       prometheusoperator.Labels
	CrdKinds                     monitoringv1.CrdKinds
	CrdGroup                     string
	EnableValidation             bool
	ManageCRDs                   bool
}

type Operator

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

Operator manages life cycle of Alertmanager deployments and monitoring configurations.

func New

func New(c prometheusoperator.Config, logger log.Logger) (*Operator, error)

New creates a new controller.

func (*Operator) RegisterMetrics

func (c *Operator) RegisterMetrics(r prometheus.Registerer, reconcileErrorsCounter *prometheus.CounterVec, triggerByCounter *prometheus.CounterVec)

func (*Operator) Run

func (c *Operator) Run(stopc <-chan struct{}) error

Run the controller.

Jump to

Keyboard shortcuts

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