Issue #7 new
Add a :healthcheck plugin
Dropwizard has a nifty HealthCheck interface that allows you to easily add a standardized health-check resource to your service for easy monitoring.
Strelka's should look something like:
class MyService < Strelka::App plugin :healthcheck # The default URI healthcheck_resource '/healthcheck' # Each block should raise if there's a problem healthcheck( :database ) do raise "Database connection failure" unless db.status == PG::CONNECTION_OK end # healthcheck( :templates ) do self.template( :main ) # raises an error if the template can't be loaded end end