A Go library for collecting Linux system inventory information without external dependencies.
Sysinfo is a Go library that provides detailed Linux OS, kernel, and hardware system information. It is designed to be completely standalone, requiring no external dependencies or host system utilities, and focuses on collecting static inventory data that doesn't change frequently.
Go developers building system monitoring, inventory, or provisioning tools for modern Linux distributions (kernel 4.2+).
Developers choose Sysinfo for its zero external dependencies, ensuring reliable operation without relying on host system utilities, and its focused scope on static inventory data, which simplifies maintenance and keeps the code robust.
Sysinfo is a Go library providing Linux OS / kernel / hardware system information.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
It operates without executing any host system utilities, ensuring reliability even in minimal or containerized environments where external tools might be missing.
Provides detailed data on OS, kernel, hardware, BIOS, CPU, memory, storage, and network in a structured JSON format, as shown in the sample output.
By limiting scope to unchanging inventory data, the library maintains clean code and reduces maintenance overhead, as stated in the motivation.
Leverages Linux kernel 4.2+ internals and virtual filesystems (/sys, /proc) for accurate and up-to-date system information.
Full functionality requires root access to read SMBIOS/DMI tables and RAM details, which can be a security concern or limitation in restricted setups.
The library is built specifically for Linux and has no plans to support other operating systems, making it unsuitable for heterogeneous environments.
Deliberately excludes metrics that change frequently, so it cannot be used for performance monitoring or real-time alerting.
Requires Linux kernel 4.2 or later, excluding support for older systems that may still be in production use.