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

debug exporter is not supported when using collector with operator #3556

Open
gaur-piyush opened this issue Dec 17, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@gaur-piyush
Copy link

Describe the bug

I am trying to configure a collector after deploying the operator. I am trying to use debug exported but the pod keeps restarting as it's not supporting debug exporter.

Steps to reproduce
Deploy the operator and use a sample collector config with debug exporter.

What did you expect to see?
The pod should be running smoothly.

What did you see instead?
Pod going into CrashLoopBackoff mode with the below error.

Error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

* error decoding 'exporters': unknown type: "debug" for id: "debug" (valid values: [kafka logicmonitor skywalking otlp coralogix googlemanagedprometheus influxdb instana jaeger loadbalancing mezmo logging f5cloud googlecloud splunk_hec dynatrace googlecloudpubsub loki opencensus prometheus alibabacloud_logservice awskinesis azuremonitor prometheusremotewrite tanzuobservability signalfx sumologic carbon dataset sentry file parquet awsxray azuredataexplorer datadog jaeger_thrift tencentcloud_logservice zipkin awscloudwatchlogs cassandra elasticsearch awsemf awss3 logzio sapm otlphttp clickhouse pulsar])
2024/12/17 07:56:58 collector server run finished with error: failed to get config: cannot unmarshal the configuration: 1 error(s) decoding:

* error decoding 'exporters': unknown type: "debug" for id: "debug" (valid values: [kafka logicmonitor skywalking otlp coralogix googlemanagedprometheus influxdb instana jaeger loadbalancing mezmo logging f5cloud googlecloud splunk_hec dynatrace googlecloudpubsub loki opencensus prometheus alibabacloud_logservice awskinesis azuremonitor prometheusremotewrite tanzuobservability signalfx sumologic carbon dataset sentry file parquet awsxray azuredataexplorer datadog jaeger_thrift tencentcloud_logservice zipkin awscloudwatchlogs cassandra elasticsearch awsemf awss3 logzio sapm otlphttp clickhouse pulsar])

What version did you use?
0.111.0

What config did you use?

apiVersion: opentelemetry.io/v1beta1
kind: OpenTelemetryCollector
metadata:
  name: collector-with-ta
  namespace: opentelemetry-operator
spec:
  mode: statefulset
  image: ""
  imagePullPolicy: Always
  targetAllocator:
    enabled: true
    serviceAccount: target-allocator
  config:
    receivers:
      prometheus:
        config:
          scrape_configs:
          - job_name: test
            scrape_interval: 30s
            static_configs:
            - targets: [ '0.0.0.0:8888' ]
    exporters:
      debug:
        verbosity: normal
      googlecloud:
        project: ""
        metric:
          prefix: custom.googleapis.com
        sending_queue:
          enabled: true
          queue_size: 20000
    extensions:
      health_check: 
        endpoint: 0.0.0.0:13133
    processors:
      batch:
        send_batch_size: 8192
        send_batch_max_size: 10000
        timeout: 10s
      memory_limiter:
        check_interval: 5s
        limit_percentage: 80
        spike_limit_percentage: 30
      resourcedetection:
        detectors: [gcp]
        timeout: 10s
      filter/cv:
        metrics:
          include:
            match_type: strict
            metric_names: "" 
    service:
      extensions:
      - health_check
      pipelines:
        metrics:
          receivers: [prometheus]
          processors: [filter/cv]
          exporters: [googlecloud]

Environment

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"

Additional context
NA

@gaur-piyush gaur-piyush added the bug Something isn't working label Dec 17, 2024
@mx-psi mx-psi transferred this issue from open-telemetry/opentelemetry-collector Dec 17, 2024
@jaronoff97
Copy link
Contributor

can you share your operator version and collector version? Your collector is complaining that the build doesn't have the debug exporter which should have existed since v0.86.0 open-telemetry/opentelemetry-collector#11337

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants