https://github.com/geonetwork/gnm_collect
A standalone daemon that collects the metrics data from a geonetwork instance and generated reports from the metrics.
https://github.com/geonetwork/gnm_collect
Last synced: over 1 year ago
JSON representation
A standalone daemon that collects the metrics data from a geonetwork instance and generated reports from the metrics.
- Host: GitHub
- URL: https://github.com/geonetwork/gnm_collect
- Owner: geonetwork
- License: mit
- Created: 2015-05-07T11:07:28.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-15T14:37:09.000Z (about 11 years ago)
- Last Synced: 2024-06-21T09:38:24.347Z (about 2 years ago)
- Language: Go
- Size: 219 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
Summary
=======
A standalone application/daemon for recording the metrics output from Geonetwork and generating tables and graphs from the recorded data.
The application have 2 APIs for interacting with it. CLI and Web
If you have the binary an example of running the application is as follows:
gnm_collect -target http://localhost:8989/gn -logging=true -user=monitor -pass=monpas -out=gnm-reports
Command-line Interface
----------------------
By default the system is ran in terminal mode. In this case `?` followed by Enter/Return will show the available commands. For example:
q - Write reports to disk and exit the application
f/s - Write/Flush reports to disk
Web API
-------
The -port=... parameter can be used to set the web server port. By default the server is started on port 10100.
The main page is: http://localhost:10100/index.html (or just http://localhost:10100/)
Build from Source
=================
You can use the go get commands to build from sources. To do this you need to install:
* Go
* Git
* Hg
If this is done then you just need to do the following:
go get github.com/geonetwork/gnm_collect
This will clone gnm_collect and all dependencies as well as build a binary for gnm_collect. The binary can be executed as follows:
./bin/gnm_collect -user admin -pass admin
You can run directly from the source (rather than compiled binary with:
go run src/github.com/geonetwork/gnm_collect/gnm_collect.go
All dependencies are cloned and you can build from your GOPATH directory
Distribution
============
To distribute this application, clone and build the application as described in _Build from Source_.
To create a distribution bundle do:
Linux example:
mkdir gnm_collect_1.0
cp bin/gnm_collect gnm_collect_1.0/
cp -r src/github.com/gonum/plot/vg/fonts gnm_collect_1.0/
tar czf gnm_collect_1.0.tar.gz gnm_collect_1.0/
rm -rf gnm_collect_1.0