Oz Tiram c9a7beab29 Refactor: remove CPU part into own file | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
bin | %!s(int64=5) %!d(string=hai) anos | |
cmd | %!s(int64=5) %!d(string=hai) anos | |
.gitignore | %!s(int64=5) %!d(string=hai) anos | |
Makefile | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
cpu.go | %!s(int64=5) %!d(string=hai) anos | |
gupta.go | %!s(int64=5) %!d(string=hai) anos | |
gupta_test.go | %!s(int64=5) %!d(string=hai) anos | |
memory.go | %!s(int64=5) %!d(string=hai) anos | |
memory_test.go | %!s(int64=5) %!d(string=hai) anos |
A minial metric collection system which polls:
Fondly named gupta, for my bud.
You need go in version 1.12 at least. On a linux based system just type
$ make build
This will place the built program in the bin/
directory.
To install the program into your system:
$ sudo make install
On a linux based system just type make build
$ make test
$ gutpa [-c|-l|-m|-p <partition>|-n <interface>] [-i <sec>]
You should see something like this:
$ gupta -c
{
"timestamp": <epoch>,
"metrics": [
{"name": "cpu user", "metric": 60.0},
...
]
}
$ sudo make uninstall