events

package
v4.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.MonitorConfig
	// Configuration of the Kubernetes API client
	KubernetesAPI *kubernetes.APIConfig `yaml:"kubernetesAPI" default:"{}"`
	// A list of event types to send events for.  Only events matching these
	// items will be sent.
	WhitelistedEvents []EventInclusionSpec `yaml:"whitelistedEvents"`
	// If true, all events from Kubernetes will be sent.  Please don't use this
	// option unless you really want to act on all possible K8s events.
	SendAllEvents bool `yaml:"_sendAllEvents"`
	// Whether to always send events from this agent instance or to do leader
	// election to only send from one agent instance.
	AlwaysClusterReporter bool `yaml:"alwaysClusterReporter"`
}

Config for the K8s event monitor

type EventInclusionSpec

type EventInclusionSpec struct {
	Reason             string `yaml:"reason"`
	InvolvedObjectKind string `yaml:"involvedObjectKind"`
}

EventInclusionSpec specifies a type of event to send

type Monitor

type Monitor struct {
	Output types.Output
	// contains filtered or unexported fields
}

Monitor for K8s Cluster Metrics. Also handles syncing certain properties about pods.

func (*Monitor) Configure

func (m *Monitor) Configure(conf *Config) error

Configure the monitor and kick off event syncing

func (*Monitor) Shutdown

func (m *Monitor) Shutdown()

Shutdown the monitor and stop any syncing

Jump to

Keyboard shortcuts

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