nstat Go library clone of nstat c := &nstat.Counters{DumpZeros: true} for counter, value := range c.Get() { fmt.Printf("%-32s %d\n", counter, value) } see API documentation Installing the binary: go get github.com/sparrc/nstat/... # -a is always on: nstat -z