Bez popisu

Oz Tiram 31edda847b Add basic memory reporting před 5 roky
bin 65aca9e16b Initial project structure před 5 roky
cmd 31edda847b Add basic memory reporting před 5 roky
.gitignore 65aca9e16b Initial project structure před 5 roky
Makefile f92c0151d3 Read /proc/stat in the main program před 5 roky
README.md 34e3351571 Improve the README před 5 roky
gupta.go ec56a2268e Clean, Sweep refactor ... před 5 roky
gupta_test.go ec56a2268e Clean, Sweep refactor ... před 5 roky
memory.go 31edda847b Add basic memory reporting před 5 roky
memory_test.go 31edda847b Add basic memory reporting před 5 roky

README.md

Goopta - Go + Opta

A minial metric collection system which polls:

  • Load average values
  • Derived CPU percentage values
  • Network interface statistics
  • Disk partition usage in percent
  • Memory usage in percent

Fondly named gupta, for my bud.

Building

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.

Installing

To install the program into your system:

$ sudo make install

Testing

On a linux based system just type make build

$ make test

Usage

$ gutpa [-c|-l|-m|-p <partition>|-n <interface>] [-f <sec>]

You should see something like this:

$ gupta -c 
{
   "timestamp": <epoch>,
   "metrics": [
      {"name": "cpu user", "metric": 60.0},
	  ...
   ]
}

Removing

$ sudo make uninstall