Skip to content

POC: Remove opensearch, grafana, jaeger, prometheus#202

Draft
osullivandonal wants to merge 1 commit intoelastic:mainfrom
osullivandonal:poc-docker-remove-services
Draft

POC: Remove opensearch, grafana, jaeger, prometheus#202
osullivandonal wants to merge 1 commit intoelastic:mainfrom
osullivandonal:poc-docker-remove-services

Conversation

@osullivandonal
Copy link

@osullivandonal osullivandonal commented Feb 27, 2026

Changes

This commits the docker-compose.override.yml file to the elastic fork of the otel demo. This is done to remove the mentioned services. We remove the same services when running the demo in k8s.

Here we are using the docker-compose.override.yml file. This is .gitignored upstream. But we can add it with git add -f.

The result here shows that the following services are not ran when running the demo with docker:

opentelemetry-demo poc-docker-remove-services ❯ ./demo.sh
----------------------------------------------------
🚀 OpenTelemetry Demo with Elastic Observability
----------------------------------------------------

❓ Which Elasticsearch deployment type do you want to send the data into? [serverless/cloud-hosted]? serverless

❓ In which environment the demo should be deployed? [docker/k8s]? docker

⌛️ Starting OTel Demo + EDOT on 'docker' → Elastic (serverless)...

🔑 Enter your Elastic OTLP endpoint: https://otel-demo-test-b0d77d.ingest.europe-west1.gcp.elastic.cloud:443
🔑 Enter your Elastic API key:

docker compose --env-file .env --env-file .env.override up --force-recreate --remove-orphans --detach
[+] up 25/25
 ✔ Network opentelemetry-demo Created                                                                                                                                          0.0s
 ✔ Container kafka            Healthy                                                                                                                                         41.3s
 ✔ Container valkey-cart      Created                                                                                                                                          0.1s
 ✔ Container postgresql       Created                                                                                                                                          0.1s
 ✔ Container flagd            Created                                                                                                                                          0.1s
 ✔ Container llm              Created                                                                                                                                          0.1s
 ✔ Container otel-collector   Created                                                                                                                                          0.1s
 ✔ Container payment          Created                                                                                                                                          0.1s
 ✔ Container cart             Created                                                                                                                                          0.1s
 ✔ Container fraud-detection  Created                                                                                                                                          0.1s
 ✔ Container product-catalog  Created                                                                                                                                          0.1s
 ✔ Container flagd-ui         Created                                                                                                                                          0.1s
 ✔ Container email            Created                                                                                                                                          0.1s
 ✔ Container currency         Created                                                                                                                                          0.1s
 ✔ Container shipping         Created                                                                                                                                          0.1s
 ✔ Container ad               Created                                                                                                                                          0.1s
 ✔ Container image-provider   Created                                                                                                                                          0.1s
 ✔ Container accounting       Created                                                                                                                                          0.1s
 ✔ Container quote            Created                                                                                                                                          0.1s
 ✔ Container product-reviews  Created                                                                                                                                          0.1s
 ✔ Container recommendation   Created                                                                                                                                          0.1s
 ✔ Container checkout         Created                                                                                                                                          0.0s
 ✔ Container frontend         Created                                                                                                                                          0.0s
 ✔ Container load-generator   Created                                                                                                                                          0.1s
 ✔ Container frontend-proxy   Created                                                                                                                                          0.0s

OpenTelemetry Demo is running.
Go to http://localhost:8080 for the demo UI.
Go to http://localhost:8080/jaeger/ui for the Jaeger UI.
Go to http://localhost:8080/grafana/ for the Grafana UI.
Go to http://localhost:8080/loadgen/ for the Load Generator UI.
Go to http://localhost:8080/feature/ to change feature flags.

🎉 OTel Demo and EDOT are running on 'docker'; data is flowing to Elastic (serverless).

This commits the docker-compose.override.yml file to the elastic fork of
the otel demo. This is done to remove the mentioned services. We remove
the same services when running the demo in k8s.
@@ -0,0 +1,17 @@
services:
opensearch: !reset
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we use !reset, from the docs:

Reset value
In addition to the previously described mechanism, an override Compose file can also be used to remove elements from your application model. For this purpose, the custom YAML tag !reset can be set to override a value set by the overridden Compose file. A valid value for attribute must be provided, but will be ignored and target attribute will be set with type's default value or null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant