Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to build pipelines: failed to create "kafka" receiver for data type "traces": unrecognized encoding #26116

Closed
withlin opened this issue Aug 28, 2023 · 1 comment
Labels
bug Something isn't working exporter/elasticsearch needs triage New item requiring triage receiver/kafka

Comments

@withlin
Copy link

withlin commented Aug 28, 2023

Component(s)

exporter/elasticsearch, receiver/kafka

What happened?

Description

collector server run finished with error: failed to build pipelines: failed to create "kafka" receiver for data type "traces": unrecognized encoding

Steps to Reproduce

apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
  name: otlp-collector
spec:
  mode: daemonset
  image: otel/opentelemetry-collector-contrib:0.83.0
  config: |
    receivers:
      kafka:
        brokers:
          - kafka-0.kafka-headless.kafka.svc.cluster.local:29092
          - kafka-1.kafka-headless.kafka.svc.cluster.local:29092
          - kafka-2.kafka-headless.kafka.svc.cluster.local:29092
        topic: otel
        encoding: otlp_json
        protocol_version: 2.0.0
    processors:
    exporters:
      elasticsearch/1:
        endpoints: [http://es-es-internal-http.otel.svc:9200]
        traces_index: test
        user: "elastic"
        password: "xxxx"
        tls:
          insecure: false
          insecure_skip_verify: false
    service:
      pipelines:
        traces/2:
          receivers: [kafka]
          exporters: [elasticsearch/1]

Expected Result

can support encoding otlp_json

Actual Result

Error: failed to build pipelines: failed to create "kafka" receiver for data type "traces": unrecognized encoding
2023/08/28 13:23:23 collector server run finished with error: failed to build pipelines: failed to create "kafka" receiver for data type "traces": unrecognized encoding

Collector version

opentelemetry-collector-contrib:0.83.0

Environment information

Environment

OS: (e.g., "Redhat 8.0")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
  name: otlp-collector
spec:
  mode: daemonset
  image: otel/opentelemetry-collector-contrib:0.83.0
  config: |
    receivers:
      kafka:
        brokers:
          - kafka-0.kafka-headless.kafka.svc.cluster.local:29092
          - kafka-1.kafka-headless.kafka.svc.cluster.local:29092
          - kafka-2.kafka-headless.kafka.svc.cluster.local:29092
        topic: otel
        encoding: otlp_json
        protocol_version: 2.0.0
    processors:
    exporters:
      elasticsearch/1:
        endpoints: [http://es-es-internal-http.otel.svc:9200]
        traces_index: test
        user: "elastic"
        password: "xxxx"
        tls:
          insecure: false
          insecure_skip_verify: false
    service:
      pipelines:
        traces/2:
          receivers: [kafka]
          exporters: [elasticsearch/1]

Log output

2023/08/28 13:23:23 collector server run finished with error: failed to build pipelines: failed to create "kafka" receiver for data type "traces": unrecognized encoding

Additional context

No response

@withlin withlin added bug Something isn't working needs triage New item requiring triage labels Aug 28, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter/elasticsearch needs triage New item requiring triage receiver/kafka
Projects
None yet
Development

No branches or pull requests

1 participant