Skip to content

feature: linux kernel telemetry#627

Merged
harp-intel merged 8 commits intointel:mainfrom
HarpPDX:kernel-telemetry
Feb 10, 2026
Merged

feature: linux kernel telemetry#627
harp-intel merged 8 commits intointel:mainfrom
HarpPDX:kernel-telemetry

Conversation

@HarpPDX
Copy link
Contributor

@HarpPDX HarpPDX commented Feb 7, 2026

Adds a few kernel-related metrics to the telemetry report:

  • ctx_switches_per_sec
  • procs_running
  • procs_blocked
  • minor_faults_per_sec
  • major_faults_per_sec
  • pgscan_per_sec
  • pgsteal_per_sec
  • swapin_per_sec
  • swapout_per_sec

HarpPDX and others added 6 commits February 6, 2026 18:47
Move the duration exit check to after output but before sleep,
so the final sample is emitted before exiting. This ensures the
sample count matches other telemetry scripts (e.g., duration=10
with interval=2 now produces 5 samples instead of 4).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Change kernel telemetry output to use human-readable timestamp
format (hh:mm:ss) consistent with other telemetry tables, while
keeping Unix timestamp for duration calculations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add minor page faults/s, major page faults/s, and context
switches/s to the telemetry summary table.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@harp-intel harp-intel marked this pull request as ready for review February 9, 2026 22:23
@harp-intel harp-intel self-requested a review as a code owner February 9, 2026 22:23
@harp-intel harp-intel requested a review from Copilot February 9, 2026 22:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Linux kernel-derived telemetry metrics (from /proc/stat and /proc/vmstat) and exposes them in new Telemetry report tables and summary fields.

Changes:

  • Introduces a new kernel telemetry script that outputs kernel/process/vm counters as CSV.
  • Adds new Telemetry tables (“Virtual Memory” and “Process”) wired to the new script and HTML chart renderers.
  • Extends the telemetry summary to include page fault and context switch averages.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
internal/script/scripts.go Adds a new embedded script that samples kernel stats (/proc/stat, /proc/vmstat) and emits CSV.
cmd/telemetry/telemetry_tables.go Registers new table definitions and parses the kernel telemetry CSV into table fields.
cmd/telemetry/telemetry_renderers.go Adds new HTML renderers to chart the new tables.
cmd/telemetry/telemetry.go Adds CLI flags, registers renderers, and includes new metrics in the summary.

harp-intel and others added 2 commits February 9, 2026 14:36
…eader

Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
The 10 second timeout was insufficient for graceful shutdown when
kernel telemetry scripts need time to complete their cleanup handlers.
This caused intermittent exit code 255 errors with empty output.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@harp-intel harp-intel merged commit 95fc45f into intel:main Feb 10, 2026
5 checks passed
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.

3 participants