DropWizard metrics on Graphite demo in Scala
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 run
GRAPHITE_HOST: hostname for the Graphite instance where metrics are sent
GRAPHITE_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!