Documentation ¶
Index ¶
- Variables
- func FindReceiversInConfig(conf *confmap.Conf, os string) (common.TranslatorMap[component.Config], error)
- func NewTranslator(inputName, cfgKey string, defaultMetricCollectionInterval time.Duration) common.Translator[component.Config]
- func NewTranslatorWithName(name, inputName, cfgKey string, ...) common.Translator[component.Config]
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.