Skip to content

Commit

Permalink
[chore] Add depends on to otelcol to wait on healthy opensearch (open…
Browse files Browse the repository at this point in the history
…-telemetry#1724)

* Add depends on to otelcol

* changelog

* Update docker-compose.minimal.yml

Co-authored-by: Roger Coll <[email protected]>

---------

Co-authored-by: Roger Coll <[email protected]>
  • Loading branch information
julianocosta89 and rogercoll authored Oct 7, 2024
1 parent a1cfe47 commit 34d95c9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ the release.
([#1707](https://github.com/open-telemetry/opentelemetry-demo/pull/1707))
* [chore] Fix gen-proto for accountingservice
([#1709](https://github.com/open-telemetry/opentelemetry-demo/pull/1709))
* [chore] Add depends on to otelcol to wait on healthy opensearch
([#1724](https://github.com/open-telemetry/opentelemetry-demo/pull/1724))
* [accountingservice] bump OpenTelemetry .NET Automatic Instrumentation
to 1.8.0 together with other dependencies
([#1727](https://github.com/open-telemetry/opentelemetry-demo/pull/1727))
Expand Down
11 changes: 10 additions & 1 deletion docker-compose.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,10 @@ services:
- "${OTEL_COLLECTOR_PORT_GRPC}"
- "${OTEL_COLLECTOR_PORT_HTTP}"
depends_on:
- jaeger
jaeger:
condition: service_started
opensearch:
condition: service_healthy
logging: *logging
environment:
- ENVOY_PORT
Expand Down Expand Up @@ -653,4 +656,10 @@ services:
hard: 65536
ports:
- "9200"
healthcheck:
test: curl -s http://localhost:9200/_cluster/health | grep status | grep -q '\\(green\\|yellow\\)'
start_period: 10s
interval: 5s
timeout: 10s
retries: 10
logging: *logging
11 changes: 10 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,10 @@ services:
- "${OTEL_COLLECTOR_PORT_GRPC}"
- "${OTEL_COLLECTOR_PORT_HTTP}"
depends_on:
- jaeger
jaeger:
condition: service_started
opensearch:
condition: service_healthy
logging: *logging
environment:
- ENVOY_PORT
Expand Down Expand Up @@ -764,4 +767,10 @@ services:
hard: 65536
ports:
- "9200"
healthcheck:
test: curl -s http://localhost:9200/_cluster/health | grep -q '"status":"green"'
start_period: 10s
interval: 5s
timeout: 10s
retries: 10
logging: *logging

0 comments on commit 34d95c9

Please sign in to comment.