fix: Add missing otelcol alias to make OTel Engine work with OTel Collector helm chart#5473
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an otelcol compatibility alias to Alloy’s container images so OpenTelemetry ecosystem tooling (notably the OTel Collector Helm chart) can invoke Alloy’s OTel engine without needing to prepend an otel subcommand.
Changes:
- Add a Linux
/bin/otelcolwrapper script that delegates toalloy otel. - Add a Windows
otelcol.cmdwrapper that delegates toalloy.exe otel. - Update Linux and Windows Dockerfiles to include these compatibility wrappers in the final images.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
packaging/docker/otelcol.sh |
Adds a small shell wrapper that maps otelcol ... → alloy otel .... |
packaging/docker/otelcol.cmd |
Adds a Windows CMD wrapper that maps otelcol ... → alloy.exe otel .... |
Dockerfile |
Installs /bin/otelcol into the Linux image and ensures it is executable. |
Dockerfile.windows |
Installs otelcol.cmd into the Windows image for compatibility use cases. |
blewis12
approved these changes
Feb 9, 2026
Member
blewis12
left a comment
There was a problem hiding this comment.
LGTM trying it out locally - perhaps we can add a follow up issue for integration testing
blewis12
pushed a commit
that referenced
this pull request
Feb 10, 2026
…lector helm chart (#5473) Turns out that we cannot change the OTel Collector Helm Chart's args to prepend an otel subcommand. To allow using Alloy's OTel Engine with OTel ecosystem more broadly, we add an otelcol alias to Alloy's Docker image.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brief description of Pull Request
Turns out that we cannot change the OTel Collector Helm Chart's
argsto prepend anotelsubcommand. To allow using Alloy's OTel Engine with OTel ecosystem more broadly, we add anotelcolalias to Alloy's Docker image.Pull Request Details
Issue(s) fixed by this Pull Request
Notes to the Reviewer
This should be tested in the future integration test. For now I verified in local cluster:
PR Checklist