How to add healthcheck for Bunny without overwhelming logs? #689
Replies: 4 comments
-
@PoroshkinaVV that message is not particularly important but the only reason why your get "a lot of You can set it to The Monitoring doc guide for RabbitMQ itself both discusses health checks and recommended monitoring frequency. |
Beta Was this translation helpful? Give feedback.
-
@PoroshkinaVV I've reduced the verbosity of that specific message to |
Beta Was this translation helpful? Give feedback.
-
@michaelklishin thank you for your answer!! I totally understand that.
That's why I asked about alternative ways of healthchecks:
How can I do that?
This guides covers how to monitor rabbitmq itself. But I need to understand, if my application can connect to rabbitmq and don't have access to monitor Rabbitmq itself.
|
Beta Was this translation helpful? Give feedback.
-
It makes sense monitor the number of unsuccessful authentication attempts and various operational metrics such as consumer delivery and acknowledgement rates. Bunny does not dictate how you do that. I don't see much value in connecting every 30-60s, although at that rate, it won't do any harm unless you have tens or hundreds of instance of your app. Connection churn should be avoided. |
Beta Was this translation helpful? Give feedback.
-
I have an app within k8s. For my probes I want to check if bunny is up and ready to work.
My code for healtcheck:
Probes starts every 10s and I get really huge amount of info messages, that has no useful information for my app, caused by line
client.start
.This leads me to the line:
bunny/lib/bunny/session.rb
Line 1273 in 8e79ee8
So I want to ask, is there a possibility to change it's log_level to debug from info?
Or, maybe, there is some best practice, how to add healthcheck for Bunny, without need to start session?
Beta Was this translation helpful? Give feedback.
All reactions