Pablote
Pablote

Reputation: 5083

Customize Dropwizard's /ping

Dropwizard provides a /ping endpoint on it's admin port (7001) that responds with a "pong" string.

Is it possible to customize the behavior of this call? What I'm looking for is to be able to control the response of the call based on application code.

Upvotes: 0

Views: 1800

Answers (1)

condit
condit

Reputation: 10962

It's actually not Dropwizard that provides this - it's the metrics library.

You could register your own servlet. Or maybe it makes sense to use a health check?

Upvotes: 2

Related Questions