Documentation ¶
Overview ¶
Package attributes provides an otelcol.processor.k8sattributes component.
Index ¶
- type Arguments
- func (args Arguments) Convert() (otelcomponent.Config, error)
- func (args Arguments) Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component
- func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
- func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
- func (args *Arguments) SetToDefault()
- func (args *Arguments) Validate() error
- type ExcludeConfig
- type ExcludePodConfig
- type ExtractConfig
- type FieldExtractConfig
- type FieldFilterConfig
- type FilterConfig
- type PodAssociation
- type PodAssociationSlice
- type PodAssociationSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { AuthType string `river:"auth_type,attr,optional"` Passthrough bool `river:"passthrough,attr,optional"` ExtractConfig ExtractConfig `river:"extract,block,optional"` Filter FilterConfig `river:"filter,block,optional"` PodAssociations PodAssociationSlice `river:"pod_association,block,optional"` Exclude ExcludeConfig `river:"exclude,block,optional"` // Output configures where to send processed data. Required. Output *otelcol.ConsumerArguments `river:"output,block"` }
Arguments configures the otelcol.processor.k8sattributes component.
func (Arguments) Convert ¶
func (args Arguments) Convert() (otelcomponent.Config, error)
Convert implements processor.Arguments.
func (Arguments) Exporters ¶
func (args Arguments) Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component
Exporters implements processor.Arguments.
func (Arguments) Extensions ¶
func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
Extensions implements processor.Arguments.
func (Arguments) NextConsumers ¶
func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
NextConsumers implements processor.Arguments.
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements river.Defaulter.
type ExcludeConfig ¶
type ExcludeConfig struct {
Pods []ExcludePodConfig `river:"pod,block,optional"`
}
type ExcludePodConfig ¶
type ExcludePodConfig struct {
Name string `river:"name,attr"`
}
type ExtractConfig ¶
type ExtractConfig struct { Metadata []string `river:"metadata,attr,optional"` Annotations []FieldExtractConfig `river:"annotation,block,optional"` Labels []FieldExtractConfig `river:"label,block,optional"` }
type FieldExtractConfig ¶
type FieldFilterConfig ¶
type FilterConfig ¶
type FilterConfig struct { Node string `river:"node,attr,optional"` Namespace string `river:"namespace,attr,optional"` Fields []FieldFilterConfig `river:"field,block,optional"` Labels []FieldFilterConfig `river:"label,block,optional"` }
type PodAssociation ¶
type PodAssociation struct {
Sources []PodAssociationSource `river:"source,block"`
}
type PodAssociationSlice ¶
type PodAssociationSlice []PodAssociation
type PodAssociationSource ¶
Click to show internal directories.
Click to hide internal directories.