Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 398 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 398 Bytes

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