Aucune description

Oz Tiram d19946a945 Merge branch 'master' of gogs.tiram.it:oznt/gupta il y a 5 ans
bin 65aca9e16b Initial project structure il y a 5 ans
cmd 6510bfe4db Rename flag frequency to interval il y a 5 ans
.gitignore 65aca9e16b Initial project structure il y a 5 ans
Makefile f92c0151d3 Read /proc/stat in the main program il y a 5 ans
README.md 2999527348 Update 'README.md' il y a 5 ans
gupta.go 83beba716f Report memory in a JSON form il y a 5 ans
gupta_test.go 83beba716f Report memory in a JSON form il y a 5 ans
memory.go 83beba716f Report memory in a JSON form il y a 5 ans
memory_test.go 83beba716f Report memory in a JSON form il y a 5 ans

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