Skip to content
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

Why demo docs otelcol-config.yml file and runtime config files are different? #1324

Closed
EmrhT opened this issue Jan 9, 2024 · 1 comment
Closed
Labels
question Further information is requested

Comments

@EmrhT
Copy link

EmrhT commented Jan 9, 2024

Question

hello, I installed the demo env with helm charr. within demo docs and repository, otel collector config file is given as https://github.com/open-telemetry/opentelemetry-demo/blob/main/src/otelcollector/otelcol-config.yml.

However, when I deep dived to explore my-otel-demo-otelcol-xxx container runtime, I discovered two different config files both of which are different that the one given above. First one is /conf/relay.yaml, second is /etc/otelcol-contrib/config.yaml.

Entrypoint process of the container is using the first config file as it can be seen below.
image

It is given to the runtime via mounting my-otel-demo-otelcol configmap as a volume in deployment.

Can you explain why those files are different and if there is a relation between those that I'm missing (like auto-generation from each other)?

Thanks in advance.

@EmrhT EmrhT added the question Further information is requested label Jan 9, 2024
@puckpuck
Copy link
Contributor

The Demo's Helm chart depends upon the OpenTelemetry Collector chart. The Collector chart is what sets the usage of /conf/relay.yaml for the config file. The chart also specifies several default configuration options that are not modified for the Demo, which will contribute to the contents not matching what is in the Demo's repo. This is intentional, as we want the Kubernetes deployment to take advantage of what is offered in that world, while keeping what is in the repo itself to just what is required for a local deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants