Skip to content

Add sysinfo node for host CPU, memory, and IP monitoring#15

Merged
ashaffah merged 1 commit into
mainfrom
feat/sysinfo-node
Jun 29, 2026
Merged

Add sysinfo node for host CPU, memory, and IP monitoring#15
ashaffah merged 1 commit into
mainfrom
feat/sysinfo-node

Conversation

@ashaffah

Copy link
Copy Markdown
Owner

This pull request introduces a new sysinfo node that periodically emits host CPU usage, memory statistics, and local IP address, making it easier to monitor system resources. The implementation includes configuration, documentation, and integration into the node catalog and runtime.

New node: System Information

  • Added a new sysinfo node implementation in src/runtime/nodes/sysinfo.rs, which emits snapshots of CPU usage, memory statistics, and the local IP address at a configurable interval.
  • Registered the sysinfo node in the runtime node builder in src/runtime/nodes/mod.rs, enabling it to be instantiated and used in flows. [1] [2]
  • Added the sysinfo node to the catalog in src/catalog.rs with configuration for interval and descriptive metadata.

Dependency updates

  • Added the sysinfo crate (with only the system feature enabled) to Cargo.toml for lightweight, cross-platform system information gathering.

Documentation

  • Documented the new sysinfo node in both README.md and README.id.md, describing its purpose and output. [1] [2]A source node that periodically emits the host's CPU usage, memory (used/total/percent), and local IP — the runtime equivalent of an edge agent's "resources" topic, which sandboxed function nodes cannot read.

Uses the sysinfo crate (system feature only) for CPU/memory; the local IP is resolved via a UDP-connect trick (no dependency, no packet sent). Verified live: emits real cpu/memory/ip.

A source node that periodically emits the host's CPU usage, memory
(used/total/percent), and local IP — the runtime equivalent of an edge
agent's "resources" topic, which sandboxed function nodes cannot read.

Uses the sysinfo crate (system feature only) for CPU/memory; the local
IP is resolved via a UDP-connect trick (no dependency, no packet sent).
Verified live: emits real cpu/memory/ip.
@ashaffah ashaffah merged commit 29d90ae into main Jun 29, 2026
1 check passed
@ashaffah ashaffah deleted the feat/sysinfo-node branch July 1, 2026 02:00
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.

1 participant