-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Hotrod and Monitor Use Docker Compose V2 as Default #6523
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -69,7 +69,7 @@ This brings up the system necessary to use the SPM feature locally. | |||||
It uses the latest image tags from both Jaeger and OpenTelemetry. | ||||||
|
||||||
```shell | ||||||
docker compose up | ||||||
docker compose -f docker-compose-v1.yml up | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's turn this around and emphasize v2 first, with a note for v1 |
||||||
``` | ||||||
|
||||||
**Jaeger v2** | ||||||
|
@@ -83,7 +83,7 @@ docker compose -f docker-compose-v2.yml up | |||||
- Navigate to Jaeger UI at http://localhost:16686/ and inspect the Monitor tab. Select `redis` service from the dropdown to see more than one endpoint. | ||||||
- To visualize the raw metrics stored on the Prometheus server (for debugging and local development use cases), use the built-in Prometheus UI at http://localhost:9090/query. For example, http://localhost:9090/query?g0.expr=traces_span_metrics_calls_total&g0.tab=0&g0.range_input=5m | ||||||
|
||||||
**Warning:** The included [docker-compose.yml](./docker-compose.yml) file uses the `latest` version of Jaeger and other components. If your local Docker registry already contains older versions, which may still be tagged as `latest`, you may want to delete those images before running the full set, to ensure consistent behavior: | ||||||
**Warning:** The included [docker-compose-v1.yml](./docker-compose-v1.yml) file uses the `latest` version of Jaeger and other components. If your local Docker registry already contains older versions, which may still be tagged as `latest`, you may want to delete those images before running the full set, to ensure consistent behavior: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
```bash | ||||||
make clean-all | ||||||
|
@@ -92,7 +92,7 @@ make clean-all | |||||
To use an official published image of Jaeger, specify the version via environment variable: | ||||||
|
||||||
```shell | ||||||
JAEGER_IMAGE_TAG=1.62.0 docker compose up | ||||||
JAEGER_IMAGE_TAG=1.62.0 docker compose -f docker-compose-v1.yml up | ||||||
``` | ||||||
|
||||||
or for Jaeger v2: | ||||||
|
@@ -126,7 +126,7 @@ to emit traces to the OpenTelemetry Collector which, in turn, will aggregate the | |||||
|
||||||
Start the local stack needed for SPM, if not already done: | ||||||
```shell | ||||||
docker compose up | ||||||
docker compose -f docker-compose-v2.yml up | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The v2 files need to be renamed just docker-compose, so that the user is not required to specify them on the command line. |
||||||
``` | ||||||
|
||||||
Generate a specific number of traces with: | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ As of Jaeger v1.42.0 this application was upgraded to use the OpenTelemetry SDK | |
|
||
### Run everything via `docker compose` | ||
|
||
* Download `docker-compose.yml` from https://github.com/jaegertracing/jaeger/blob/main/examples/hotrod/docker-compose.yml | ||
* Download `docker-compose-v1.yml` from https://github.com/jaegertracing/jaeger/blob/main/examples/hotrod/docker-compose-v1.yml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Emphasize v2 versions in the docs, not v1 |
||
* Optional: find the latest Jaeger version (see https://www.jaegertracing.io/download/) and pass it via environment variable `JAEGER_VERSION`. Otherwise `docker compose` will use the `latest` tag, which is fine for the first time you download the images, but once they are in your local registry the `latest` tag is never updated and you may be running stale (and possibly incompatible) verions of Jaeger and the HotROD app. | ||
* Run Jaeger backend and HotROD demo, e.g.: | ||
* `JAEGER_VERSION=1.52 docker compose -f path-to-yml-file up` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change the target names accordingly? And the readme.