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.
 
 
Dave Hrycyszyn 160ff1aaf3
Merge pull request #36 from nymtech/fix/correct-banner
2 years ago
constants Using remote ip as host information for presence data 3 years ago
docs Corrected swag @title 2 years ago
healthcheck Corrected swag @title 2 years ago
metrics Returning delay until next report 2 years ago
models Corrected swag @title 2 years ago
server unused import 2 years ago
.gitignore Ignoring generated sqlite files 2 years ago
.golangci.yml ci: adding config files 3 years ago
.travis.yml Turning off Travis notifications 2 years ago
LICENSE Initial commit 3 years ago
README.md Update README.md 2 years ago
go.mod Initial work on batch reporting 2 years ago
go.sum Initial work on batch reporting 2 years ago
main.go Corrected swag @title 2 years ago
nym_directory_suite_test.go server: set up empty test bootstrap as a sanity check 3 years ago

README.md

Nym Metrics Server

A central metrics server which keeps track of the current mixing state of the network.

Dependencies

  • Go 1.12 or later

Building and running

go run main.go builds and runs the metrics server

Usage

Nym nodes periodically send metrics information (how many Sphinx packets they've sent and received in a given interval). These metrics allow us to easily build visualizations of the network for demonstration, education, and debugging purposes during development and testnet.

To see documentation of the server's capabilities, go to http://localhost:8080/swagger/index.html in your browser. All methods are runnable through the Swagger docs interface, so you can poke at the server to see what it does.

Developing

go test ./... will run the test suite.

swag init rebuilds the Swagger docs if you've changed anything there. Otherwise it should not be needed.

If you update any of the HTML assets, go-assets-builder server/html/index.html -o server/html/index.go will put it in the correct place to be built into the binary.