This is an example play application with three routes:
- /hello
- /hello/:name
- /error
These routes are monitored using the play prometheus filters.
You start the application with:
sbt runThese routes can be used with the following curl commands
curl localhost:9000/hello
curl localhost:9000/hello/yourname
curl localhost:9000/errorThe prometheus metrics can be viewed on the /metrics endpoint
curl localhost:9000/metricsThe following filters are enabled:
- StatusCounterFilter
- StatusAndRouteLatencyFilter