Brak opisu

Oz Tiram c9a7beab29 Refactor: remove CPU part into own file 5 lat temu
bin 65aca9e16b Initial project structure 5 lat temu
cmd 2851e35979 Refactor: move time out of gupta.GuptaReport.MarshalJSON 5 lat temu
.gitignore 65aca9e16b Initial project structure 5 lat temu
Makefile 123150b4f6 More UI improvements 5 lat temu
README.md 2999527348 Update 'README.md' 5 lat temu
cpu.go c9a7beab29 Refactor: remove CPU part into own file 5 lat temu
gupta.go c9a7beab29 Refactor: remove CPU part into own file 5 lat temu
gupta_test.go e3126b8762 Clean up the tests a little bit 5 lat temu
memory.go 123150b4f6 More UI improvements 5 lat temu
memory_test.go 225ad5d551 Clean up memory tests 5 lat temu

README.md

Goopta - Go + Opta

A minial metric collection system which polls:

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

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>] [-i <sec>]

You should see something like this:

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

Removing

$ sudo make uninstall