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 { configmodels.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 ¶
func (f *Factory) CreateDefaultConfig() configmodels.Extension
CreateDefaultConfig creates the default configuration for the extension.
func (*Factory) CreateExtension ¶
func (f *Factory) CreateExtension( ctx context.Context, params component.ExtensionCreateParams, cfg configmodels.Extension, ) (component.ServiceExtension, error)
CreateExtension creates the extension based on this config.
func (*Factory) Type ¶
func (f *Factory) Type() configmodels.Type
Type gets the type of the config created by this factory.
Click to show internal directories.
Click to hide internal directories.