Java web application health check good practices

levtatarov picture levtatarov · Feb 12, 2013 · Viewed 20k times · Source

I have a Java web app running (with Spring) and I wish to have a health check performed every few minutes. I'm not checking the Tomcat or the JVM but strictly on the application level so I have a few ideas for stuff to check.

For example:

  • make a simple query to check DB sanity
  • check that the environment is "production" (cause that's the only one that'll be monitored)

Basically I'm looking for other ideas and suggestions for what to check or some best practices for it.

Any ideas?

Answer

yegor256 picture yegor256 · Aug 21, 2013

I'd recommend to try Metrics Framework