/tools.go.monitoring

vmstat and beyond, in go

Primary LanguageGo

tools.go.monitoring

vmstat and beyond, in go

How to...

Build

= compile all and create exe for local architecture in current dir

$ go build

or ;b in vim

Install

= cross-compile all and create exe for other architecture in go bin dir

$ GOOS=linux GOARCH=amd64 go install

Test

a. run on a host without proc fs

$ FS_ROOT=.samples go run cmd/cpustat/main.go (options)

b. run on a virtual Linux host

$ docker run -it -v ~/go:/go ubuntu bash
# /go/bin/linux_amd64/cpustat (options)