k8sattributes

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 9 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              `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"`

	// 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

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.

func (*Arguments) Validate

func (args *Arguments) Validate() error

Validate implements syntax.Validator.

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

type FieldFilterConfig

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

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

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

Jump to

Keyboard shortcuts

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