adapter

package
v1.300035.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// OtelReceivers is used for receivers that need to be in the same pipeline that
	// exports to Cloudwatch while not having to follow the adapter rules
	OtelReceivers = map[string]common.Translator[component.Config]{
		common.OtlpKey: otlp.NewTranslator(otlp.WithDataType(component.DataTypeMetrics)),
	}
)

Functions

func FindReceiversInConfig

func FindReceiversInConfig(conf *confmap.Conf, os string) (common.TranslatorMap[component.Config], error)

FindReceiversInConfig looks in the metrics and logs sections to determine which plugins require adapter translators. Logs is processed first, so any colliding metrics translators will override them. This follows the rule setup.

func NewTranslator

func NewTranslator(inputName, cfgKey string, defaultMetricCollectionInterval time.Duration) common.Translator[component.Config]

NewTranslator creates a new adapter receiver translator.

func NewTranslatorWithName

func NewTranslatorWithName(name, inputName, cfgKey string, preferMetricCollectionInterval, defaultMetricCollectionInterval time.Duration) common.Translator[component.Config]

Types

This section is empty.

Jump to

Keyboard shortcuts

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