No Description

Oz Tiram df24005e45 Stat line numbers are natural - so uint is better 5 years ago
bin 65aca9e16b Initial project structure 5 years ago
cmd ecca586a5a Add basic parsing of arguments to the program 5 years ago
.gitignore 65aca9e16b Initial project structure 5 years ago
Makefile 65aca9e16b Initial project structure 5 years ago
README.md 34e3351571 Improve the README 5 years ago
gupta.go df24005e45 Stat line numbers are natural - so uint is better 5 years ago
gupta_test.go d288f4de5a Parse all CPUStat fields from the file line 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