Skip to content

[github-workflows-kt] Add alias for host name for Jaeger#21

Merged
LeoColman merged 1 commit intoLeoColman:mainfrom
krzema12:main
Nov 25, 2024
Merged

[github-workflows-kt] Add alias for host name for Jaeger#21
LeoColman merged 1 commit intoLeoColman:mainfrom
krzema12:main

Conversation

@krzema12
Copy link
Copy Markdown
Contributor

@krzema12 krzema12 commented Nov 24, 2024

This is the first step to be able to add support for viewing aggregated metrics in Jaeger. Following the guide here: https://github.com/jaegertracing/jaeger/tree/main/docker-compose/monitor, we need to switch the traces collector, from Jaeger to OTel Collector. To be able to do it without downtime, we need to do it in three steps:

  1. (this PR) Add an alternative host name for the current traces receiver (Jaeger).
  2. Switch the app to use the new, abstract host name.
  3. Adjust the Docker Compose config to include OTel Collector, available under the new abstract host name.

This change is inspired by https://github.com/jaegertracing/jaeger/blob/4d1c7d8ddc23e5492772b3f985205dd423fbd363/docker-compose/monitor/docker-compose.yml#L23

@krzema12 krzema12 changed the title Add alias for host name for Jaeger [github-workflows-kt] Add alias for host name for Jaeger Nov 24, 2024
reverse_proxy:
# An abstract host name, used by the application. Allows abstracting
# out what component is the receiver of traces.
aliases: [traces_collector]
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

No idea how this is supposed to work with reverse_proxy.

If this does what I think it does, 'http://trace_collector:16686' should work inside other containers.
By default only 'http://jaeger:16686' would be published.

Is this what we want to change?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's exactly the goal :) Basically an alias for jaeger.

@LeoColman LeoColman merged commit b7cb82f into LeoColman:main Nov 25, 2024
krzema12 added a commit to typesafegithub/github-workflows-kt that referenced this pull request Nov 25, 2024
We're about to change a service which receives the traces. It's now
Jaeger, and thanks to this change: LeoColman/MyStack#21,
Jaeger is now reachable by the more abstract host name. It lets us
abstract out what component receives the traces by simply configuring
in Docker Compose's config which service will be available under this
hostname. Ultimately, it will allow us to enable aggregated metrics with
OTel Collector and Prometheus without downtime.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants