Skip to content

Commit

Permalink
Fix Kafka and Collector config for macs (#74)
Browse files Browse the repository at this point in the history
* Fix Kafka and Collector config for macs

Neither were working right, in the case of kafka this disables some problematic tracing options
and in the case of the collector this fixes the config yaml

* Revert docker-compose
  • Loading branch information
andrewvc authored Sep 9, 2024
1 parent 1c2affe commit 6989226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/kafka/Dockerfile.elastic
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ USER appuser

ADD --chown=appuser:appuser https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=co.elastic.otel&a=elastic-otel-javaagent&v=LATEST /tmp/opentelemetry-javaagent.jar

ENV OTEL_INFERRED_SPANS_ENABLED=true
ENV OTEL_INFERRED_SPANS_ENABLED=false
ENV ELASTIC_OTEL_SPAN_STACK_TRACE_MIN_DURATION=2
ENV KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093
ENV KAFKA_CONTROLLER_QUORUM_VOTERS='[email protected]:9093'
Expand Down
2 changes: 2 additions & 0 deletions src/otelcollector/otelcol-elastic-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ receivers:
otlp:
protocols:
grpc:
endpoint: ${env:OTEL_COLLECTOR_HOST}:${env:OTEL_COLLECTOR_PORT_GRPC}
http:
endpoint: ${env:OTEL_COLLECTOR_HOST}:${env:OTEL_COLLECTOR_PORT_HTTP}
cors:
allowed_origins:
- "http://*"
Expand Down

0 comments on commit 6989226

Please sign in to comment.