Skip to content

A standalone daemon that collects the metrics data from a geonetwork instance and generated reports from the metrics.

License

Notifications You must be signed in to change notification settings

geonetwork/gnm_collect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

A standalone daemon that collects the metrics data from a geonetwork instance and generated reports from the metrics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published