Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventCallback ¶
func EventCallback(vault *vault.MetricsVault, omitEventsMessages bool) func(obj interface{})
EventCallback generates the handler to connect prometheus metrics vault to the shared event informer.
func EventMapping ¶
EventMapping creates the mapping for the prometheus metrics vault. The order of the labels here should match the one from the sample converter function.
Types ¶
type EventsInformer ¶
type EventsInformer struct {
// contains filtered or unexported fields
}
EventsInformer handles Kubernetes events. The is the shim between metrics storage and Kubernetes cluster.
func NewEventsInformer ¶
func NewEventsInformer(kubeconfigPath, fieldSelector string, handler func(object interface{})) (*EventsInformer, error)
NewEventsInformer creates cached informer to track events from a Kubernetes cluster.
func (*EventsInformer) Run ¶
func (e *EventsInformer) Run(stopCh <-chan struct{}, errorCh chan<- error)
Run starts the informer with various handlers and waits for the first cache synchronization.
Click to show internal directories.
Click to hide internal directories.