k8sattributes

package
v0.43.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package attributes provides an otelcol.processor.k8sattributes component.

Index

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

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.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate implements river.Validator.

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 FieldExtractConfig struct {
	TagName  string `river:"tag_name,attr,optional"`
	Key      string `river:"key,attr,optional"`
	KeyRegex string `river:"key_regex,attr,optional"`
	Regex    string `river:"regex,attr,optional"`
	From     string `river:"from,attr,optional"`
}

type FieldFilterConfig

type FieldFilterConfig struct {
	Key   string `river:"key,attr"`
	Value string `river:"value,attr"`
	Op    string `river:"op,attr,optional"`
}

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

type PodAssociationSource struct {
	From string `river:"from,attr"`
	Name string `river:"name,attr,optional"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL