Play framework: Server monitoring and performance admin page
java, monitoring, playframework, profiling, scala
Solution
For metrics related to HTTP requests/JVM Stats Twitter's Ostrich is awesome: https://github.com/twitter/ostrich.
For CPU/Memory you can execute Unix commands to obtain the metrics by importing scala.sys.process._ package.
Since you are using Play! you can have a separate routes: one for number of HTTP requests managed by Ostrich Stats collector, one for CPU/Memory, one for performance metrics (also managed by Ostrich) and so on..
Problem
I am using Play 2.2.x with Scala. I want an admin dashboard which shows CPU/Memory, list of recent HTTP requests, performance and load metrics, logs, server console etc in a nice HTML charts GUI page. Is there a Play plugin or a Java EE drop-in I can use? Takipi/NewRelic looks good but it does not have a nice HTTP log UI. JavaMelody looks good too but it is geared for traditional Java EE apps rather than a Play2 Scala app.