hyperdx/smoke-tests/otel-collector/docker-compose.yaml

48 lines
1.3 KiB
YAML

name: otel-collector-smoke-tests
services:
ch-server:
extends:
file: ../../docker-compose.ci.yml
service: ch-server
ports:
- 9000:9000
- 8123:8123
networks:
- internal
healthcheck:
test:
wget -O /dev/null --no-verbose --tries=1 http://127.0.0.1:8123/ping ||
exit 1
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
otel-collector:
build:
context: ../..
dockerfile: docker/otel-collector/Dockerfile
target: dev
args:
OTEL_COLLECTOR_VERSION: ${OTEL_COLLECTOR_VERSION:-0.149.0}
OTEL_COLLECTOR_CORE_VERSION: ${OTEL_COLLECTOR_CORE_VERSION:-1.55.0}
environment:
- CLICKHOUSE_ENDPOINT=tcp://ch-server:9000?dial_timeout=10s
- CLICKHOUSE_PROMETHEUS_METRICS_ENDPOINT=ch-server:9363
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=
- HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE=default
- HYPERDX_LOG_LEVEL=info
# OPAMP_SERVER_URL is intentionally not set to run in standalone mode
ports:
- 4318:4318 # OTLP http receiver
- 13133:13133 # health check
networks:
- internal
depends_on:
ch-server:
condition: service_healthy
networks:
internal:
name: 'smoke-test-internal-network'