alertmanager

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 43 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListOptions added in v0.3.0

func ListOptions(name string) metav1.ListOptions

func Status added in v0.47.0

func ValidateAlertmanagerConfig added in v0.54.0

func ValidateAlertmanagerConfig(amc *monitoringv1alpha1.AlertmanagerConfig) error

ValidateAlertmanagerConfig checks that the given resource complies with the semantics of the Alertmanager configuration. In particular, it verifies things that can't be modelized with the OpenAPI specification such as routes should refer to an existing receiver..

func ValidateURL added in v0.53.0

func ValidateURL(url string) (*config.URL, error)

ValidateURL against the config.URL This could potentially become a regex and be validated via OpenAPI but right now, since we know we need to unmarshal into an upstream type after conversion, we validate we don't error when doing so

Types

type Config added in v0.5.0

type Config struct {
	Host                         string
	LocalHost                    string
	ClusterDomain                string
	ReloaderConfig               operator.ReloaderConfig
	AlertmanagerDefaultBaseImage string
	Namespaces                   operator.Namespaces
	Labels                       operator.Labels
	AlertManagerSelector         string
	SecretListWatchSelector      string
}

type Operator

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

Operator manages life cycle of Alertmanager deployments and monitoring configurations.

func New

New creates a new controller.

func (*Operator) Run

func (c *Operator) Run(ctx context.Context) error

Run the controller.

Jump to

Keyboard shortcuts

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