Skip to content

Instantly share code, notes, and snippets.

@fredrikln
Created August 15, 2024 08:31
Show Gist options
  • Save fredrikln/b73c1d99ad14a03be1e6ddf800844f8d to your computer and use it in GitHub Desktop.
Save fredrikln/b73c1d99ad14a03be1e6ddf800844f8d to your computer and use it in GitHub Desktop.
Open Telemetry Collector container with debug logging
docker run -it -v "${PWD}/otel-local-config.yml":/otel-local-config.yaml -p 4317:4317 -p 4318:4318 -p 55679:55679 -p 9464:9464 --name=otel otel/opentelemetry-collector:0.88.0 --config otel-local-config.yaml
receivers:
otlp:
protocols:
grpc:
http:
processors:
batch:
exporters:
debug:
verbosity: detailed
# prometheus:
# endpoint: '0.0.0.0:9464'
# resource_to_telemetry_conversion:
# enabled: true
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [debug]
metrics:
receivers: [otlp]
processors: [batch]
#exporters: [debug,prometheus]
exporters: [debug]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment