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
{{ message }}
Repository navigation
fix(k8s): alloy-profiles is OOMKilled on the busiest node and restarts every few minutes #1815
priority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it must
One pod of the alloy-profiles DaemonSet (monitoring namespace) is OOMKilled over and over: the alloy container had 31 restarts in 148 minutes, and the pod sits at 1/2 Ready in CrashLoopBackOff. The other two pods of the DaemonSet, on the other nodes, have run without a restart for the same 148 minutes.
Evidence
The container's memory limit is 512Mi (alloy-profiles.alloy.resources in k8s/monitoring/k8s-monitoring-values.yaml); its last state is OOMKilled, exit code 137.
The healthy pods hold 205 to 215Mi. The crashing one, on the node that runs the most pods (13, with another node), was at 286Mi and 275m CPU a few minutes after its restart, and climbs to the limit before it is killed.
The profiler targets every pod on the node (profiling.ebpf.targetingScheme: all), so its memory follows how many processes the node runs and the symbol tables of their binaries.
Its log before each kill also shows Failed to load /bin/prometheus ...: unsupported Go version go1.27.1 (need >= 1.13 and <= 1.26): the eBPF profiler cannot unwind that binary, which Prometheus runs on every node.
Proposed remedy
Raise alloy-profiles.alloy.resources.limits.memory to a value measured on the busiest node (kubectl top of the pod over a day), or narrow what the profiler targets from all to the namespaces and annotated pods whose profiles are read. Say in the values why the limit is what it is. The Prometheus Go-version message needs an Alloy release whose profiler supports Go 1.27; until then it only costs that one binary's profile.
Acceptance Criteria of docs/agent/tasks/task-1815-alloy-profiles-memory.md:
The profiler's memory limit is 1024Mi (test_the_profiler_limit_leaves_room_above_the_spikes_that_killed_it).
Pending a person: after the release reaches main and Argo CD syncs k8s-monitoring, every pod of kubectl -n monitoring get pods -l app.kubernetes.io/name=alloy-profiles is 2/2 Ready with no new restarts after a day. If the pod on the busiest node still reaches 1024Mi, narrow profiling.ebpf.targetingScheme instead of raising the limit again.
priority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Activity
fix(k8s): the profiler pod on the busiest node gets 1024Mi (#1816)
dan-petty commentedon Oct 22, 2026
What changed
#1816, merged into
release/v0.2.39as b40d48e.4 file(s) changed.
How it was verified
Check runs at b6c546e:
Acceptance Criteria of
docs/agent/tasks/task-1815-alloy-profiles-memory.md:test_the_profiler_limit_leaves_room_above_the_spikes_that_killed_it).mainand Argo CD syncsk8s-monitoring, every pod ofkubectl -n monitoring get pods -l app.kubernetes.io/name=alloy-profilesis 2/2 Ready with no new restarts after a day. If the pod on the busiest node still reaches 1024Mi, narrowprofiling.ebpf.targetingSchemeinstead of raising the limit again.feat(release): v0.2.39 (#1947)