This demo hooks up DropWizard based metrics to Graphite.
Provide the following environment variables to run this demo:
APP_PORT
: port in which the application is runGRAPHITE_HOST
: hostname for the Graphite instance where metrics are sentGRAPHITE_PORT
: port of the Graphite instance where metrics are sent
Use sbt to run this demo:
$ sbt run
There's a "hello world" response exposed in the root path.
$ curl http://localhost:9000 # Assuming APP_PORT is 9000
Hello, world!