No Description

Oz Tiram 60264403fb Improve UI a little bit 5 years ago
bin 65aca9e16b Initial project structure 5 years ago
cmd 60264403fb Improve UI a little bit 5 years ago
.gitignore 65aca9e16b Initial project structure 5 years ago
Makefile f92c0151d3 Read /proc/stat in the main program 5 years ago
README.md 34e3351571 Improve the README 5 years ago
gupta.go e7006200df Properly report CPU Usage 5 years ago
gupta_test.go e7006200df Properly report CPU Usage 5 years ago

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