.net core – RabbitMQ Health check

This is how I am using bus and need to add health check for virtual hosts I am using, what’s the best way to add health check?

services.AddSingleton(RabbitHutch.CreateBus(config, x => { }));

I built RabbitMQ connection string for one of the hosts and added following but I am not sure if this is the right way for adding health check for the bus / multiple virtual hosts?
Following gives me Not_ALlowed error. First I would like to know what’s the better way to health check then I will try to resolve this error.

.AddRabbitMQ(rabbitmqconnection,null,”RabbitMQ”, null, tags: tags);

Thanks!

Read more here: Source link