Files
Pulse/docs/release-control
rcourtman 67dc73e487 Add passive internal socket peer discovery and hardware accelerators (#5297)
## Summary
- Passively read established internal TCP peers from Linux
`/proc/net/tcp` and `/proc/net/tcp6` in
`internal/hostmetrics/socket_peers.go` (using `LISTEN` sockets to
separate inbound vs outbound service ports), dropping public internet,
loopback, link-local, multicast, and self-IP addresses on the host
before sending and capping at 128 unique pairs.
- Validate reported peers again on receipt in
`internal/monitoring/host_network_peers.go` and project canonical
`communicates_with` relationships in
`internal/unifiedresources/host_socket_relationships.go` strictly
between monitored resources with unambiguous internal IPs (unknown LAN
IPs and shared ambiguous IPs are skipped).
- Extract hardware accelerator labels (`GPU`, `AMD GPU`, `iGPU`, `TPU`,
`NPU`, `PCIe`) from Docker `HostConfig.DeviceRequests`,
`HostConfig.Devices`, and device mounts, and from existing cached
Proxmox VM `hostpciN` and LXC device configuration reads with zero extra
Proxmox API calls.

## Verification
- `go test` passed for `pkg/agents/host`, `pkg/agents/docker`,
`internal/hostmetrics`, `internal/hostagent`, `internal/dockeragent`,
`internal/models`, `internal/monitoring`, and
`internal/unifiedresources`.
- `go vet` passed across all modified packages.
- `scripts/release_control/canonical_completion_guard.py` passed.
2026-11-27 18:23:40 +00:00
..