I have a kubernetes service that sends messages to a kafka cluster, but sometimes the pods just dont send anything and keep running.
One of my ideas is to monitor the container logs, and when is not sending anything, it alerts me and restart the service. The question is: Is this the best way to do it? And how can i do this? (monitor log and automate restart)