diff --git a/.gitignore b/.gitignore index 23fa726..9a783e9 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ # Binary ganglia +gmon diff --git a/.travis.yml b/.travis.yml index 319ba4a..f36bf93 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,16 @@ language: go go: + - 1.8.x + - 1.9.x - 1.10.x - 1.11.x - 1.12.x dist: + - trusty - xenial script: - - go build ganglia.go + - go build gmon.go diff --git a/README.md b/README.md index 09d0824..3153eb4 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ -# ganglia-query +# gmon - ganglia-query [![Build Status](https://travis-ci.org/grisu48/ganglia-query.svg?branch=master)](https://travis-ci.org/grisu48/ganglia-query) -This is a small go project to read out a `gmond` instance with enabled `tcp` server +This is a small go project to read the current stats provided by a [ganglia](http://ganglia.sourceforge.net/) instance with enabled `tcp` channel (read from `gmond`, thus the name `gmon`). ## Usage - ./ganglia REMOTE[:PORT][,REMOTE[:PORT]] - e.g. ./ganglia cluster1 cluster2:8922 + ./gmon REMOTE[:PORT][,REMOTE[:PORT]] + e.g. ./gmon cluster1 cluster2:8922 -ganglia establishes a tcp connection to the `gmond`-server, fetches the XML contents and prints the stats as console-friendly table. +`gmon` establishes a tcp connection to the given `gmond` remote, receives the XML contents and prints the stats as console-friendly table. ### Example - ~/git/ganglia-query$ ./ganglia beowulf-cluster server-farm + ~/git/ganglia-query$ ./gmon beowulf-cluster server-farm Cluster: beowulf-cluster Host Last Update CPU Memory Load (1-5-15) @@ -39,8 +39,8 @@ ganglia establishes a tcp connection to the `gmond`-server, fetches the XML cont ## Compile - go build ganglia + go build gmon Requirements -* `go >= 1.10.x` \ No newline at end of file +* `go >= 1.8.x` \ No newline at end of file diff --git a/ganglia.go b/gmon.go similarity index 100% rename from ganglia.go rename to gmon.go