Oz Tiram c9a7beab29 Refactor: remove CPU part into own file | 5 лет назад | |
---|---|---|
bin | 5 лет назад | |
cmd | 5 лет назад | |
.gitignore | 5 лет назад | |
Makefile | 5 лет назад | |
README.md | 5 лет назад | |
cpu.go | 5 лет назад | |
gupta.go | 5 лет назад | |
gupta_test.go | 5 лет назад | |
memory.go | 5 лет назад | |
memory_test.go | 5 лет назад |
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