Skip to content

Add otel-collector - #493

Draft
jorbaum wants to merge 10 commits into
cloudfoundry:mainfrom
jorbaum:add-otel-collector
Draft

jorbaum wants to merge 10 commits into
cloudfoundry:mainfrom
jorbaum:add-otel-collector

Conversation

@jorbaum

@jorbaum jorbaum commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Adds the otel-collector to kind deployment as its commonly used in cloudfoundry already. Deployment of otel-collector is opt-in for now.

Requires cloudfoundry/cf-k8s-releases#230 and cloudfoundry/loggregator-agent-release#734 (CI currently failing due to that).

I verified locally that I am able to send otlp traffic to otelCollector.exportEndpoint.


Drafted by an AI coding harness, carefully reviewed.

Comment thread helmfile.yaml.gotmpl Outdated
Comment thread versions.yaml Outdated
@jorbaum

jorbaum commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

With this next try I am now using the upstream image from otel/opentelemetry-collector-contrib .

However, I also adapted the loggregator-agent release helm chart so it includes the otel-collector. This is necessary as the forwarder-agent currently only forwards to localhost.

Alternatively one could adapt the forwarder agent to send OTLP to other locations as well. However, when we think about going that route we could also add a proper cloudfoundry loggregator envelope receiver to the otel-collector as well. I consider this out of scope for now.

@jorbaum jorbaum changed the title Add otel-collector-release based on upstream helm Add otel-collector-release Sep 25, 2026
@jorbaum jorbaum changed the title Add otel-collector-release Add otel-collector Sep 25, 2026
@jorbaum

jorbaum commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

I verified locally that I am able to send otlp traffic to otelCollector.exportEndpoint.

Does it make sense to add a test for that?

jorbaum and others added 10 commits October 13, 2026 16:59
Uses upstream helm chart but our own otel distro
* Also configures healthcheck for otel collector
otel-collector is still experimental and should not be deployed by
default
Re-use the upstream otel/opentelemetry-collector-contrib image instead of
the CF-maintained distro. Drops the cross-repo deps on cf-k8s-releases#230
and otel-collector-release#263 — the contrib image already bundles
health_check.

- Replace CF distro image + custom command with otel/opentelemetry-collector-contrib
- Add mTLS OTLP receiver (otlp/cf-internal-local, grpc 0.0.0.0:4317, TLS 1.3)
  mirroring the BOSH otel-collector-release job, using all-in-one-tls secret
- Mount all-in-one-tls at /etc/otel/certs (extraVolumes/extraVolumeMounts)
- Add otlp exporter targeting configurable exportEndpoint (default: host.docker.internal:4317)
- Document config lineage in comment pointing to upstream chart values.yaml
- Drop imageTag from versions.yaml; add exportEndpoint value

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
forwarder-agent only sends to localhost right now
Moved enabled and exportEndpoint under otelCollector in values.yaml.gotmpl
...now that we have enabled forwarding to external endpoints in
forwarder agent.
@jorbaum
jorbaum force-pushed the add-otel-collector branch from 712d8b7 to aac58b4 Compare October 13, 2026 15:49
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