diff --git a/internal/pkg/otel/translate/otelconfig.go b/internal/pkg/otel/translate/otelconfig.go index 8fed0ea738c..fb501525309 100644 --- a/internal/pkg/otel/translate/otelconfig.go +++ b/internal/pkg/otel/translate/otelconfig.go @@ -60,15 +60,8 @@ var ( "log", "winlog", } - OtelSupportedMetricbeatInputTypes = []string{ - "beat/metrics", - "http/metrics", - "kubernetes/metrics", - "linux/metrics", - "prometheus/metrics", - "system/metrics", - } - OtelSupportedInputTypes = slices.Concat(OtelSupportedFilebeatInputTypes, OtelSupportedMetricbeatInputTypes) + + OtelSupportedInputTypes = OtelSupportedFilebeatInputTypes configTranslationFuncForExporter = map[otelcomponent.Type]exporterConfigTranslationFunc{ otelcomponent.MustNewType("elasticsearch"): translateEsOutputToExporter, } @@ -134,7 +127,9 @@ func VerifyComponentIsOtelSupported(comp *component.Component) error { return fmt.Errorf("unsupported output type: %s", comp.OutputType) } - if !slices.Contains(OtelSupportedInputTypes, comp.InputType) { + // check if given input is supported in OTel runtime + // this includes all metricbeat inputs and some filebeat inputs for now + if !slices.Contains(OtelSupportedInputTypes, comp.InputType) && !strings.HasSuffix(comp.InputType, "/metrics") { return fmt.Errorf("unsupported input type: %s", comp.InputType) }