Skip to content
DuckDB community extension

system_stats

Provides table functions to access system-level statistics for monitoring purpose

01 / SETUP

Install and load

Run these commands in a Haybarn SQL session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL system_stats FROM community;
LOAD system_stats FROM community;

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

Get memory information

SQL
-- Get memory information
SELECT * FROM sys_memory_info();

-- Get CPU information
SELECT * FROM sys_cpu_info();

-- Get disk information
SELECT * FROM sys_disk_info();

-- Get network information
SELECT * FROM sys_network_info();

-- Get OS information
SELECT * FROM sys_os_info();

Provided by dentiny. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

The system_stats extension provides table functions to access system-level statistics (including memory, CPU, and disk) that can be used for monitoring.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
dentiny/system_stats
License
MIT
Maintainers
dentiny
Written in
Rust & C++
Build source
e7dea146ce16
Build definition
Community descriptor