Skip to content

Jyllands-Posten/play-prometheus-filters-example-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play prometheus filters example app

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

Releases

No releases published

Packages

No packages published

Languages

  • Scala 100.0%