How to add endpoints in dropwizard like /healthcheck

Viewed 1558

we can add healthcheck like

environment.healthChecks().register(
   CheckpointConstant.CACHE,
   new CacheHealthCheck(adminConfiguration.getAppName())
);

but these are all in the '/healthcheck' interface.

how to add endpoints in port 8081, like '/healthcheck';e.g. '/liveness'.

0 Answers
Related