πŸ’ŠStats API

Low level utilities with the Bubbaloop server to get system stats and metrics

The Bubbaloop server provides a comprehensive REST API that allows users to retrieve detailed system information through the /api/v0/stats endpoint. This API leverages established Rust libraries to deliver accurate and extensive system data in a structured JSON format.

We expose the following functionality

Available API

  • GET /api/v0/stats/whoami β€” Provides detailed information about the system's identity

  • GET /api/v0/stats/sysinfo β€” Delivers comprehensive system resource metric

Usage

whoami

just whoami 0.0.0.0 3000

Server terminal

[2025-04-13T15:03:20Z DEBUG bubbaloop::api::handles::stats::whoami] πŸ€– Received request for whoami

Client terminal

Result: {
  "arch": "Arm64",
  "desktop_env": "Unknown",
  "device_name": "nvidia-desktop",
  "distro": "Ubuntu 22.04.5 LTS",
  "hostname": "nvidia-desktop",
  "platform": "Linux",
  "realname": "nvidia",
  "username": "nvidia"
}

sysinfo

Server terminal

Client terminal

Last updated