Add a :healthcheck plugin

Issue #7 new
Michael Granger
repo owner created an issue

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

    healthcheck( :templates ) do
        self.template( :main ) # raises an error if the template can't be loaded


Comments (0)

  1. Log in to comment