You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe I narrowed this down to the container name for the exclude rule being set to the Chart name (defaults to opentelemetry-kube-stack) instead of otc-container, which is said to be the container name in the Operator API Docs.
My daemonset OpenTelemetryCollector CRD YAML snippet:
{{- if .collector.presets.logsCollection.enabled }}
{{- $_ := set $collector "exclude" (printf "/var/log/pods/%s_%s*_*/%s/*.log" .namespace (include "opentelemetry-kube-stack.collectorFullname" .) (.Chart.Name | lower)) }}
The text was updated successfully, but these errors were encountered:
dysfungi
changed the title
Cannot exclude collector logs with logsCollection preset
[opentelemetry-kube-stack] Cannot exclude collector logs with logsCollection preset
May 31, 2025
dysfungi
added a commit
to dysfungi/monorepo
that referenced
this issue
May 31, 2025
Disabling any .presets.logsCollection.includeCollectorLogs does not work for OpenTelemetry Kube Stack Helm Chart v0.6.1 with any collector mode.
I believe I narrowed this down to the container name for the exclude rule being set to the Chart name (defaults to
opentelemetry-kube-stack
) instead ofotc-container
, which is said to be the container name in the Operator API Docs.My daemonset OpenTelemetryCollector CRD YAML snippet:
My daemonset YAML snippet:
One of my log filepaths:
From OpenTelemetryCollector (v1beta1) API:
From OpenTelemetry Kube Stack Helm Chart _config.tpl:
The text was updated successfully, but these errors were encountered: