qmetrics.net

gopsutil

Cross-platform system and process metrics library for Go

gopsutil ports psutil-style APIs to Go without cgo. It reads CPU, memory, disk, network, host, and process statistics across many operating systems.

Overview

gopsutil is a Go library that exposes operating-system and process metrics similar to the Python psutil project. Implementations translate platform C structures into Go so collectors can run on Linux, Windows, macOS, FreeBSD, OpenBSD, Solaris, and partial support on additional systems.

Packages cover CPU times and utilization, virtual memory and swap, disk partitions and I/O, network counters, boot time, logged-in users, process lists, and per-process details such as command line, memory maps, threads, and signals. Linux-only extras include Docker cgroup helpers, network protocol SNMP stats, and netfilter conntrack counts.

Callers can override paths to proc, sys, and related filesystem roots with environment variables or context values. Optional caching flags exist for boot time and related host data but may return stale values if the underlying counters change. Platform-specific Ex structs expose extra fields where generic APIs cannot cover OS differences.

The API is versioned with monthly tags and aims for backward compatibility within major releases. Documentation is published alongside the module for each subsystem.

Key features

  • CPU, memory, disk, and network stats
  • Process listing and per-PID inspection
  • Host metadata and uptime
  • Configurable proc and sys paths
  • Pure Go without cgo
  • Linux Docker cgroup helpers
  • Optional metric caching
  • Platform-specific Ex extensions

Use cases

  • Monitoring agents written in Go
  • Collecting machine metrics for dashboards
  • Inspecting running processes programmatically
  • Cross-platform ops tooling
  • Container-aware resource reporting on Linux

Tags

Similar software

Linux

Core operating system kernel for Linux systems

The Linux kernel is the core of any Linux operating system. It manages hardware, system resources, and provides fundamental services for other software.

★ 256.9k⟳ todayGPL-2.0
Server & VM ManagementDesktop/CLI app

Uptime Kuma

Self-hosted uptime monitoring with status pages and alerts

Uptime Kuma is a self-hosted monitoring tool for checking whether services stay online. It covers many probe types and can notify you through numerous messaging and email channels.

★ 95k⟳ yesterdayMIT
Open Source Alternative to:Pingdom

World Monitor

Real-time global intelligence dashboard for news and geopolitics

World Monitor combines live news, market data, and geopolitical signals on interactive world maps. Available on the web, as desktop builds, a terminal UI, CLI, SDKs, and an MCP server.

★ 91.3k⟳ todayAGPL-3.0
Open Source Alternative to:Liveuamap

Netdata

Per-second full-stack infrastructure observability platform

Netdata collects metrics, logs, and traces where they are generated, with per-second resolution, built-in dashboards, alerts, and machine learning anomaly detection on every metric.

★ 81.7k⟳ todayGPL-3.0
Open Source Alternative to:Application InsightsBetterStack+8

Grafana

Composable observability and data visualization platform

Grafana queries, visualizes, and alerts on metrics, logs, and traces from many backends. Teams build and share dashboards to explore operational data.

★ 78.2k⟳ todayAGPL-3.0
Open Source Alternative to:BetterStackNew Relic

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

★ 67.9k⟳ yesterdayApache-2.0
Open Source Alternative to:PRTG Network Monitor