OSHI is a Java system information library and cross-platform hardware monitor used to extract real-time performance data and specifications from processors, memory, disks, network interfaces, and system firmware. It serves as an operating system metadata provider, querying system boot times, uptime, and detailed version information across various desktop and server distributions.
The library integrates with observability pipelines by exporting system and process metrics to external monitoring backends using the Micrometer standard. It also supports connecting to vendor libraries to extract advanced graphics processing unit metrics from supported hardware.
Its capabilities cover hardware inventory management, operating system introspection, and system resource analysis. This includes tracking processor topology and load, monitoring global and virtual memory statistics, analyzing disk partitions and logical volumes, and inspecting active process details such as thread IDs and memory footprints. It further provides network statistics tracking for interface status, subnet masks, and active connection lists.