From the course: Mastering Observability with OpenTelemetry

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Collector configuration

Collector configuration

- [Instructor] Before we dive into the config, we have to change how we run Jaeger. Until now, it was listening on the OTP default ports on local host. Now we want our applications to reach the collector when using these endpoints, so we need to switch the ports Jaeger is listening to. For that I open the terminal of Jaeger. It's this Docker one here, and I'm quitting the process. Then I'm opening the startJaeger.md file. We will now change the port mapping so that externally Jaeger is exposing a different port number that maps to the default OTP ports inside the container. So this is now line six and seven, and that will just switch the four to a five. So 4317 maps to 4317 inside the container, but outside on local host, it exposes 5317. And the same of course for 5318 to 4318. With that, I can just copy this command and paste it into my terminal and start Jaeger again. Now to the config. Do you like writing YAML files? Well, I don't. This is why I prepared the collector-config for…

Contents