Skip to main content
Module host
resource_
tracker
0.1.5
Module host
Module Items
Functions
In resource_
tracker::
collector
resource_tracker
::
collector
Module
host
Copy item path
Source
Functions
ยง
collect_
host_
info
Collect all host-level metadata. Fast (no network I/O). Takes a snapshot of GPU info already gathered so GPU-derived fields (
host_gpu_model
,
host_gpu_count
,
host_gpu_vram_mib
) can be populated without re-querying the GPU driver.
read_
host_
id
๐
read_
host_
ip
๐
First non-loopback IPv4 address discovered via
getifaddrs(3)
.
read_
host_
name
๐
read_
memory_
mib
๐
MemTotal
from
/proc/meminfo
converted to MiB.
read_
storage_
gb
๐
Sum of all non-loop, non-ram block device capacities in GB.
read_
vcpus_
and_
model
๐
Returns (vcpu_count, cpu_model) by parsing
/proc/cpuinfo
once.