← All projects

Technical lab · Infrastructure prototype

Hugin

GPU inventory and telemetry on Linux, with a library, CLI, and API.

  • Go
  • Linux
  • sysfs
  • HTTP
Actual Hugin Telemetry test output with synthetic data
Actual telemetry and inventory test output · synthetic data

Challenge

Normalize GPU information from different manufacturers and accommodate varying levels of support.

My contribution

Experimental infrastructure project; fleet deployments and commercial workloads have not been validated.

Architecture and approach

The central GPU manager (pkg/gpu) exposes a common inventory and telemetry model to a CLI, Go library, and local HTTP API. NVIDIA, AMD, Intel, and sysfs adapters implement the same contract.

What was implemented

  • The manager instantiates registered backends available on the host and orders them by priority.
  • Discovery matches PCI identity or DRM node and consolidates duplicate devices, backfilling missing identification fields.
  • Telemetry queries return to the backend that identified the device. The default build is pure Go; NVML and ROCm adapters are optional.
  • The development API exposes inventory, telemetry, version, and health; its default listener is restricted to loopback.

Trade-offs and decisions

  • Portability reduces SDK dependencies, but data varies across drivers and vendors; an unavailable reading is not a measured zero.
  • Deduplication depends on hardware identity and adapter priority, requiring tests on representative machines.
  • The public edition demonstrates local observability, not remote execution, fleet management, or virtualization.

Validation and current status

In the public Hugin Telemetry repository, formatting, Go vet, race-detector tests, pure-Go build, and a local API smoke test passed. The image shows actual synthetic tests; NVML/ROCm paths and coverage of every device were not validated.

Engineering decisions

  1. 01

    Pluggable backends

    Separate collection by vendor; a sysfs fallback avoids mandatory native libraries, although metrics may be less detailed.

  2. 02

    Deduplication

    Combine inventories by device identifier to avoid double counting.

  3. 03

    Reusable interfaces

    Expose a Go library, CLI, and HTTP API over the same model.

Evidence and limitations

Independent public inventory and telemetry edition with validated race tests, go vet, and Go build. It excludes private remote execution features.

Public references

Let's build something like this.

Tell me about your problem and we'll evaluate the best approach.

Get a quote

Other projects in this category