Documentation ¶
Overview ¶
Package k8sobserver implements a k8s observer extension for monitoring pods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ExtensionFactory
NewFactory should be called to create a factory with default values.
Types ¶
type Config ¶
type Config struct { config.ExtensionSettings `mapstructure:",squash"` k8sconfig.APIConfig `mapstructure:",squash"` // Node should be set to the node name to limit discovered endpoints to. For example, node name can // be set using the downward API inside the collector pod spec as follows: // // env: // - name: K8S_NODE_NAME // valueFrom: // fieldRef: // fieldPath: spec.nodeName // // Then set this value to ${K8S_NODE_NAME} in the configuration. Node string `mapstructure:"node"` }
Config defines configuration for k8s attributes processor.
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory is the factory for the extension.
func NewFactoryWithConfig ¶
NewFactoryWithConfig creates a k8s observer factory with the given k8s API config.
func (*Factory) CreateDefaultConfig ¶
CreateDefaultConfig creates the default configuration for the extension.
Click to show internal directories.
Click to hide internal directories.