Skip to content
Open
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
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ services:
opensearch:
condition: service_healthy
required: false
healthcheck:
# The Core API on 4900 answers while an OpenSearch sink is still retrying
# initialisation, so it cannot gate readiness. Probe the OTLP gRPC source
# instead: 21890 is the port that stays closed when a sink fails, which is
# exactly the state reported in #409.
# bash is available in this image - this service's own command already
# runs /bin/bash - so no extra tooling is needed for the probe.
test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/21890"]
start_period: 30s
interval: 5s
timeout: 5s
retries: 20
networks:
- observability-stack-network
restart: unless-stopped
Expand Down
Loading