# shirou/gopsutil

psutil for golang

Repository: https://github.com/shirou/gopsutil
Canonical: https://ross.abutalabs.com/products/gopsutil
Language: Go
License: NOASSERTION
License Family: other
Topics: golang, system-information, go
Last push: 2026-08-26T14:14:14+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 95, longevity 100
- inputs: {"age_days": 4520, "days_push": 7, "days_rel": 32, "gap_med": 30.0, "n_releases_24m": 23}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11902, forks 1683 (observed 2026-08-28T04:10:50.442009+00:00)

## What it is
gopsutil is a Go port of Python's psutil library for retrieving system information such as CPU, memory, disk, network, and process metrics. It is implemented without cgo by porting C structs to Go, and supports Linux, Windows, macOS, BSD variants, and Solaris.

## Use cases
- get cpu and memory usage in a go program
- monitor system processes from go
- collect disk and network stats for a monitoring agent
- build a system metrics exporter in golang
- read host information without cgo
- query virtual memory usage cross-platform

## When to choose
- you need psutil-like system metrics in a Go application
- you want a pure-Go solution with no cgo dependency
- you need cross-platform support including Linux, Windows, macOS, and BSD
- you are building monitoring agents or exporters

## When to avoid
- you need psutil in Python rather than Go
- you need metrics on an unsupported architecture
- you need deep low-level kernel instrumentation beyond psutil's scope

## Facets
- artifact type: library
- maturity: stable
- function: monitoring, developer-tools
- domain: developer-tools, monitoring, operating-systems
- platform: windows, bsd, go, cross-platform
- tags: psutil, system-information, cgo-free, process-monitoring, hardware-metrics, linux, macos

## Member repositories
- shirou/gopsutil (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:50.442009+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:15:13.469125+00:00, confidence not recorded.
  - readme: https://github.com/shirou/gopsutil (fetched 2026-08-28T04:10:50.442009+00:00, sha 6b49a260252c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
