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.
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..
We love using's coda-hale's metrics library for metering application, jvm, http and logging metrics. http://metrics.codahale.com/
The metrics library supports reporting to various monitoring systems, e.g. graphite, ganglia. (There's a www.hostedgraphite.com service if you wish not to install graphite locally)
There's a metrics plugin for play framework (disclaimer: I'm the plugin author) here https://github.com/kenshoo/metrics-play
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With