Mirror of my ganglia query CLI tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
2.0 KiB

2 years ago
# gmon - ganglia-query
2 years ago
2 years ago
[![Build Status](https://travis-ci.org/grisu48/ganglia-query.svg?branch=master)](https://travis-ci.org/grisu48/ganglia-query)
2 years ago
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`).
2 years ago
## Usage
2 years ago
./gmon REMOTE[:PORT][,REMOTE[:PORT]]
e.g. ./gmon cluster1 cluster2:8922
2 years ago
2 years ago
`gmon` establishes a tcp connection to the given `gmond` remote, receives the XML contents and prints the stats as console-friendly table.
2 years ago
### Example
2 years ago
~/git/ganglia-query$ ./gmon beowulf-cluster server-farm
2 years ago
Cluster: beowulf-cluster
Host Last Update CPU Memory Load (1-5-15)
--------------------------------------------------------------------------------
beowulf-cluster 2019-05-07-17:46:32 8% 95.9% 0.7 0.8 0.8
beowulf01 2019-05-07-17:46:24 0% 88.3% 0.0 0.0 0.1
beowulf02 2019-05-07-17:46:20 0% 88.0% 0.0 0.0 0.1
beowulf03 2019-05-07-17:46:25 0% 85.6% 0.0 0.0 0.1
beowulf04 2019-05-07-17:46:27 0% 88.8% 0.0 0.0 0.1
beowulf05 2019-05-07-17:46:36 0% 91.2% 0.0 0.0 0.1
beowulf06 2019-05-07-17:46:27 8% 98.5% 0.9 1.0 1.0
--------------------------------------------------------------------------------
Cluster: server-farm
Host Last Update CPU Memory Load (1-5-15)
--------------------------------------------------------------------------------
frontend 2019-05-07-17:46:31 0% 75.8% 0.0 0.0 0.1
database01 2019-05-07-17:46:36 1% 5.5% 0.0 0.0 0.1
database02 2019-05-07-17:46:36 21% 11.5% 7.1 5.0 5.1
--------------------------------------------------------------------------------
2 years ago
## Compile
2 years ago
go build gmon
2 years ago
2 years ago
Requirements
2 years ago
* `go >= 1.8.x`