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 run
These routes can be used with the following curl commands
curl localhost:9000/hello
curl localhost:9000/hello/yourname
curl localhost:9000/error
The prometheus metrics can be viewed on the /metrics endpoint
curl localhost:9000/metrics
The following filters are enabled:
- StatusCounterFilter
- StatusAndRouteLatencyFilter