Documentation ¶
Overview ¶
Package kubernetes contains an observer that watches the Kubernetes API for pods that are running on the same node as the agent. It uses the streaming watch API in K8s so that updates are seen immediately without any polling interval.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationConfig ¶
type AnnotationConfig struct { AnnotationKey string // The type of annotation Type string // Either the port number or name must be specified Port int32 PortName string // The config key that this will result in when configuring a monitor ConfigKey string Value string }
AnnotationConfig is a generic struct that can describe any of the annotation config values we support.
type AnnotationConfigs ¶
type AnnotationConfigs []*AnnotationConfig
AnnotationConfigs is a slice of AnnotationConfig with some helper methods for filtering.
func (AnnotationConfigs) FilterByPortOrPortName ¶
func (ac AnnotationConfigs) FilterByPortOrPortName(port int32, portName string) (out AnnotationConfigs)
FilterByPortOrPortName returns all AnnotationConfig instances that match either the port number or port name.
type Config ¶
type Config struct { config.ObserverConfig // Configuration for the K8s API client KubernetesAPI *kubernetes.APIConfig `yaml:"kubernetesAPI" default:"{}"` }
Config for Kubernetes API observer
Click to show internal directories.
Click to hide internal directories.