From what I read in the 0.7.1 source code, unfortunately, it is not possible to change the resource URI for healthchecks, I very much doubt that you can change the healthcheck format. I also remember how people complained about the impossibility of adding REST resources to the admin page, only servlets. Perhaps at 0.8.0?
, . , , - .
AdminServlet, , , URI .
this.healthcheckUri = getParam(config.getInitParameter(HEALTHCHECK_URI_PARAM_KEY), DEFAULT_HEALTHCHECK_URI);
dropwizard AbstractServerFactory.
handler.addServlet(new NonblockingServletHolder(new AdminServlet()), "/*");
NonblockingServletHolder - , AdminServlet, AbstractServerFactory .
ServletHolder Environment Application.run, , run.
environment.getAdminContext().getServletHandler().getServlets()[0].setInitParameter("healthcheck-uri", "/health");