Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package attributes provides an otelcol.processor.k8sattributes component.
Index ¶
- type Arguments
 - func (args Arguments) Convert() (otelcomponent.Config, error)
 - func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
 - func (args Arguments) Exporters() map[pipeline.Signal]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              `alloy:"auth_type,attr,optional"`
	Passthrough     bool                `alloy:"passthrough,attr,optional"`
	ExtractConfig   ExtractConfig       `alloy:"extract,block,optional"`
	Filter          FilterConfig        `alloy:"filter,block,optional"`
	PodAssociations PodAssociationSlice `alloy:"pod_association,block,optional"`
	Exclude         ExcludeConfig       `alloy:"exclude,block,optional"`
	// Determines if the processor should wait k8s metadata to be synced when starting.
	WaitForMetadata bool `alloy:"wait_for_metadata,attr,optional"`
	// The maximum time the processor will wait for the k8s metadata to be synced.
	WaitForMetadataTimeout time.Duration `alloy:"wait_for_metadata_timeout,attr,optional"`
	// Output configures where to send processed data. Required.
	Output *otelcol.ConsumerArguments `alloy:"output,block"`
	// DebugMetrics configures component internal metrics. Optional.
	DebugMetrics otelcolCfg.DebugMetricsArguments `alloy:"debug_metrics,block,optional"`
}
    Arguments configures the otelcol.processor.k8sattributes component.
func (Arguments) Convert ¶
func (args Arguments) Convert() (otelcomponent.Config, error)
Convert implements processor.Arguments.
func (Arguments) DebugMetricsConfig ¶ added in v1.2.0
func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
DebugMetricsConfig implements processor.Arguments.
func (Arguments) Exporters ¶
func (args Arguments) Exporters() map[pipeline.Signal]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 syntax.Defaulter.
type ExcludeConfig ¶
type ExcludeConfig struct {
	Pods []ExcludePodConfig `alloy:"pod,block,optional"`
}
    type ExcludePodConfig ¶
type ExcludePodConfig struct {
	Name string `alloy:"name,attr"`
}
    type ExtractConfig ¶
type ExtractConfig struct {
	Metadata    []string             `alloy:"metadata,attr,optional"`
	Annotations []FieldExtractConfig `alloy:"annotation,block,optional"`
	Labels      []FieldExtractConfig `alloy:"label,block,optional"`
}
    type FieldExtractConfig ¶
type FieldFilterConfig ¶
type FilterConfig ¶
type FilterConfig struct {
	Node      string              `alloy:"node,attr,optional"`
	Namespace string              `alloy:"namespace,attr,optional"`
	Fields    []FieldFilterConfig `alloy:"field,block,optional"`
	Labels    []FieldFilterConfig `alloy:"label,block,optional"`
}
    type PodAssociation ¶
type PodAssociation struct {
	Sources []PodAssociationSource `alloy:"source,block"`
}
    type PodAssociationSlice ¶
type PodAssociationSlice []PodAssociation
type PodAssociationSource ¶
 Click to show internal directories. 
   Click to hide internal directories.