@@ -0,0 +1,1073 @@
+package com.github.digital_wonderland.sling_metrics.servlets;%0A%0Aimport com.github.digital_wonderland.sling_metrics.service.HealthCheckService;%0Aimport org.apache.felix.scr.annotations.Deactivate;%0Aimport org.apache.felix.scr.annotations.Reference;%0Aimport org.apache.felix.scr.annotations.sling.SlingServlet;%0A%0Aimport javax.servlet.ServletConfig;%0Aimport javax.servlet.ServletException;%0A%0A@SlingServlet(paths = %22/bin/sling-metrics/healthcheck%22, methods = %22GET%22)%0Apublic class HealthCheckServlet extends com.codahale.metrics.servlets.HealthCheckServlet %7B%0A%0A    @Reference%0A    private HealthCheckService healthCheckService;%0A%0A    private ServletConfig servletConfig;%0A%0A    @Override%0A    public void init(final ServletConfig config) throws ServletException %7B%0A        servletConfig = config;%0A        servletConfig.getServletContext().setAttribute(HEALTH_CHECK_REGISTRY, healthCheckService.getRegistry());%0A        super.init(servletConfig);%0A    %7D%0A%0A    @Deactivate%0A    protected void deactivate() %7B%0A        servletConfig.getServletContext().removeAttribute(HEALTH_CHECK_REGISTRY);%0A    %7D%0A%0A%7D%0A

add health check servlet