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
observability: node-level CPU is not attributable on talos-main (no CPU by mode, no /podruntime or /system cgroups, cAdvisor for aether-* only) #1333
From the #1320 investigation: about half of worker-04's CPU before a proxy roll (~1.2 of ~3.0 busy cores) could not be attributed to anything — kubelet, containerd, machined, the kernel and non-aether pods are invisible in stored metrics. A present-day cAdvisor snapshot shows ~0.65 core outside kubepods on an idle worker and 31 % of w04's CPU time since boot outside kubepods+kubelet. Without this, handoff-headroom questions (#1093, #1240, #1320) end in 'node saturated, cause unknown'.
node CPU by mode at ≤ 15 s (node-exporter, or the kubelet's /metrics/resource + the root cgroup from cAdvisor);
cAdvisor series for the root, /podruntime and /system cgroups, and for the non-aether namespaces on the workers (today the scrape keeps aether-.* only);
k8s.node.name on host-process profiles in the eBPF profiler;
and in aether:
Envoy stats separable by pod/epoch during an overlap (today one series per node, so the two generations merge);
a destination-side accept/handshake timestamp in the access log.
Estimate the series cost before enabling; keep allow-lists.
GitOps half drafted as bpalermo/k8s-talos-main#154 (open, CI green, owner merges). Nothing was applied to the cluster.
What worker-04's CPU is, since boot (read-only, 2026-10-07): /kubepods 59.7 %, irq + softirq 16.0 %, /podruntime/runtime (containerd and shims) 13.6 %, /podruntime/kubelet 8.9 %, /init 1.1 %, kernel threads 0.5 %, /system 0.2 %. Interrupt time is charged to no child cgroup, so cAdvisor cannot show it at any allow-list; that is why node CPU by mode needs node-exporter.
The PR adds: node-exporter (cpu and pressure collectors only, no host mounts) scraped at 15 s; cAdvisor CPU for every non-aether container and for the root, /kubepods, /podruntime/kubelet and /system cgroups; three recording rules with promtool tests; k8s.node.name on every eBPF profile. Estimated cost: about +640 series on a head of 32,791 (+1.9 %), measured by running the rendered relabel rules against all six kubelets' cAdvisor payloads.
Not covered:/podruntime/runtime has no cAdvisor series without a Talos machine-config change (runtimeCgroups, restarts each kubelet; not made, and not verified that Talos accepts the key). It is estimated by a recording rule as the remainder.
Still open in this issue (aether side): Envoy stats separable by pod/epoch during an overlap, and a destination-side accept timestamp in the access log.
Scoping result for the two aether-side items (read-only; pinned Envoy 726d7ac)
Per-generation stats: not as written. A generation label on the stats pipeline cannot separate the two generations. At the pin a hot-restart parent stops flushing to stat sinks as soon as the child starts (shutdownAdmin resets the flush timer) and does not flush at exit; the child's exported counters already include the parent's latched deltas, and the parent's gauges are merged in until it goes. Confirmed on worker-04 at the #1320 roll: one flush missing, then every sample is the child's, with uptime doubling during the overlap. A label would add about 4,150 series per node per roll and separate nothing. Histogram samples the parent takes during the overlap are never exported (inferred from the merger code).
What answers the question instead: the generation on every access-log row. The supervisor exports the restart epoch to each Envoy child and the access log records it (proxy_epoch), the same number as envoy_server_hot_restart_epoch. Which generation served or reset a request is then a lookup. For connections, existing gauges already split the overlap: child = envoy_server_total_connections − envoy_server_parent_connections.
Accept/handshake time: do it as per-request fields. The pin has the time points (DS_CX_BEG, DS_HS_END, US_TX_BEG through %COMMON_DURATION%), set for TLS and for QUIC and copied onto each stream. Proposed fields: proxy_epoch, connection_id, ds_cx_age_ms, ds_hs_ms, us_tx_beg_ms. A listener-level connection log is not an option: it is never emitted for the QUIC inbound and only at close for TCP. Cost: about 105 bytes per row, +8 % raw access-log volume (about 12 M rows on an idle day, 23 M on a soak day).
What neither item explains: the 1.1–1.55 s that six of seven #1320 failures spent before Envoy started the stream on an established QUIC connection. Envoy has no timestamp for a datagram's kernel arrival. That gap is what the node CPU data (now live) covers.
Plan: (1) supervisor exports AETHER_RESTART_EPOCH; (2) the five access-log fields, with a live test that they are not "-" (envoy --mode validate cannot catch a mistyped time point) and a runbook section on reading a hot-restart overlap. No chart bump, no proxy release, no GitOps change.
Activity
bpalermo commentedon Oct 7, 2026
GitOps half drafted as bpalermo/k8s-talos-main#154 (open, CI green, owner merges). Nothing was applied to the cluster.
What worker-04's CPU is, since boot (read-only, 2026-10-07):
/kubepods59.7 %, irq + softirq 16.0 %,/podruntime/runtime(containerd and shims) 13.6 %,/podruntime/kubelet8.9 %,/init1.1 %, kernel threads 0.5 %,/system0.2 %. Interrupt time is charged to no child cgroup, so cAdvisor cannot show it at any allow-list; that is why node CPU by mode needs node-exporter.The PR adds: node-exporter (cpu and pressure collectors only, no host mounts) scraped at 15 s; cAdvisor CPU for every non-aether container and for the root,
/kubepods,/podruntime/kubeletand/systemcgroups; three recording rules with promtool tests;k8s.node.nameon every eBPF profile. Estimated cost: about +640 series on a head of 32,791 (+1.9 %), measured by running the rendered relabel rules against all six kubelets' cAdvisor payloads.Not covered:
/podruntime/runtimehas no cAdvisor series without a Talos machine-config change (runtimeCgroups, restarts each kubelet; not made, and not verified that Talos accepts the key). It is estimated by a recording rule as the remainder.Still open in this issue (aether side): Envoy stats separable by pod/epoch during an overlap, and a destination-side accept timestamp in the access log.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo commentedon Oct 7, 2026
Scoping result for the two aether-side items (read-only; pinned Envoy 726d7ac)
Per-generation stats: not as written. A generation label on the stats pipeline cannot separate the two generations. At the pin a hot-restart parent stops flushing to stat sinks as soon as the child starts (
shutdownAdminresets the flush timer) and does not flush at exit; the child's exported counters already include the parent's latched deltas, and the parent's gauges are merged in until it goes. Confirmed on worker-04 at the #1320 roll: one flush missing, then every sample is the child's, withuptimedoubling during the overlap. A label would add about 4,150 series per node per roll and separate nothing. Histogram samples the parent takes during the overlap are never exported (inferred from the merger code).What answers the question instead: the generation on every access-log row. The supervisor exports the restart epoch to each Envoy child and the access log records it (
proxy_epoch), the same number asenvoy_server_hot_restart_epoch. Which generation served or reset a request is then a lookup. For connections, existing gauges already split the overlap: child =envoy_server_total_connections−envoy_server_parent_connections.Accept/handshake time: do it as per-request fields. The pin has the time points (
DS_CX_BEG,DS_HS_END,US_TX_BEGthrough%COMMON_DURATION%), set for TLS and for QUIC and copied onto each stream. Proposed fields:proxy_epoch,connection_id,ds_cx_age_ms,ds_hs_ms,us_tx_beg_ms. A listener-level connection log is not an option: it is never emitted for the QUIC inbound and only at close for TCP. Cost: about 105 bytes per row, +8 % raw access-log volume (about 12 M rows on an idle day, 23 M on a soak day).What neither item explains: the 1.1–1.55 s that six of seven #1320 failures spent before Envoy started the stream on an established QUIC connection. Envoy has no timestamp for a datagram's kernel arrival. That gap is what the node CPU data (now live) covers.
Plan: (1) supervisor exports
AETHER_RESTART_EPOCH; (2) the five access-log fields, with a live test that they are not "-" (envoy --mode validatecannot catch a mistyped time point) and a runbook section on reading a hot-restart overlap. No chart bump, no proxy release, no GitOps change.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
feat(supervisor): export the restart epoch to each Envoy child (#1333)
feat(supervisor): export the restart epoch to each Envoy child (#1333)
feat(supervisor): export the restart epoch to each Envoy child (#1333) (