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/5457.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`opentelemetry-docker-tests`: add Prometheus exporter docker tests
10 changes: 10 additions & 0 deletions tests/opentelemetry-docker-tests/tests/collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ receivers:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
prometheus:
config:
scrape_configs:
- job_name: otel-python-e2e
scrape_interval: 1s
static_configs:
- targets: ['host.docker.internal:9464']

exporters:
otlphttp:
Expand All @@ -18,6 +25,9 @@ service:
metrics:
receivers: [otlp]
exporters: [otlphttp]
metrics/prometheus:
receivers: [prometheus]
exporters: [otlphttp]
logs:
receivers: [otlp]
exporters: [otlphttp]
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
- "8888:8888"
- "55678:55678"
otcollector:
image: otel/opentelemetry-collector:0.149.0
image: otel/opentelemetry-collector-contrib:0.156.0
command: ["--config=/etc/otelcol/collector-config.yaml"]
volumes:
- ./collector-config.yaml:/etc/otelcol/collector-config.yaml
Expand Down
Loading
Loading