Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changelog/5220.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`opentelemetry-docker-tests`: Refactor Docker tests to properly validate contents of exported telemetry
23 changes: 23 additions & 0 deletions tests/opentelemetry-docker-tests/tests/collector-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318

exporters:
otlphttp:
endpoint: http://host.docker.internal:4319

service:
pipelines:
traces:
receivers: [otlp]
exporters: [otlphttp]
metrics:
receivers: [otlp]
exporters: [otlphttp]
logs:
receivers: [otlp]
exporters: [otlphttp]
9 changes: 7 additions & 2 deletions tests/opentelemetry-docker-tests/tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ services:
- "55678:55678"
otcollector:
image: otel/opentelemetry-collector:0.149.0
command: ["--config=/etc/otelcol/collector-config.yaml"]
volumes:
- ./collector-config.yaml:/etc/otelcol/collector-config.yaml
ports:
- "4317:4317"
- "4318:4318"
- "4317:4317"
- "4318:4318"
extra_hosts:
- "host.docker.internal:host-gateway"
Loading
Loading