This bundle adds a RabbitMQ healthcheck This bundle compiles only on Java 8.
This makes it easier perform healthchecks on RabbitMQ
-
Clone the source:
git clone github.com/phaneesh/dropwizard-rmq-healthcheck
-
Build
mvn install
- Use the following maven dependency:
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-rmq-healthcheck</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
@Override
public void initialize(final Bootstrap...) {
bootstrap.addBundle(new RabbitHealthCheckBundle() {
public RabbitConfig withConnection() {
return <rmq connetion>;
}
public List<String> withQueues() {
return <list of queues>;
}
});
}