Collect Tabular data from various endpoints and display them using datatable.js
The purpose of this tool is to collect the current State
of applications across many servers in tabular data format.
Often used when talking to the /api
endpoint
- Class - A view or a Table Heading. eg: apache_domains, dns_zones
- Host - Short host name.
- Cols - A list of Comma(,) separated values defining the column names for a particular class.
- data - CSV data (Rows are separated by new-line character(\n), Row values by comma(,)).
MIT
go get github.com/boopathi/datatable
go install
- Install
mongodb
and configuredatatable.json
$GOPATH/bin/datatable -config /path/to/datatable.json
docker pull boopathi/mongodb
docker pull boopathi/datatable
docker run -p 27017:27017 -v /var/lib/mongodb:/data/db -name mongodb boopathi/mongodb
docker run -p 4200:4200 -name datatable -link mongodb:db boopathi/datatable
Usage of ./datatable
:
-dbhost="localhost": MongoDB Host
-dbname="datatable": MongoDB Database Name
-dbpass="": MongoDB Password
-dbport=27017: MongoDB Port
-dbuser="": MongoDB User
-port=4200: Server port Number
-staticdir="/go/src/github.com/boopathi/datatable/static": Static Directory Path - Absolute
-tmpldir="/go/src/github.com/boopathi/datatable/templates": Template Directory Path - Absolute
The following options are available for packaging the compiled application. deb
and rpm
requires fpm
.
make tar
make rpm
make deb
PUT /api/create
- class = classname
- cols = "col1,col2,col3,col4"
PUT /api/put
- class = classname
- host = hostname
- data = data
GET /api/cols
- class = classname
GET /api/get
- class = classname
- host = hostname
https://index.docker.io/u/boopathi/datatable/
- Boopathi Rajaa