Monitoring and Auto-Healing Kafka-Connect with PowerShell on Windows

Kafka-Connect is part of the larger Apache Kafka ecosystem. Here at ProServeIT, we typically run Kafka using Confluent Cloud on Azure. While there are a variety of fully managed Confluent connectors that allow for data acquisition into Confluent’s fully managed Kafka instances, there are some situations where self-managed connectors are required (either due to security requirements, or because a fully managed connector doesn’t yet exist). In those cases, you’ll often need to run Kafka-Connect yourself, and monitoring and management of the self-managed connectors becomes your task to ensure that your real-time streams of data stay up and running.

Monitoring and Auto-Healing

Monitoring and Auto-Healing is done with a PowerShell script (see the PowerShell Scripts and Setup/Usage Info section below). This checks on the connectors task status every 5 minutes. If a connectors task is in a FAILED state, the script will attempt to restart the task. In some situations this will fix the issue, but not all situations. The PowerShell script will also log each connectors task status to Azure Log Analytics so Alerts can be created to quickly notify your team of a failed connector task.

Running this as a Windows Service

We also provide a script to install the monitoring and auto-healing script as a windows service. This will allow for the task status check and auto-heal to run without user intervention.

PowerShell Scripts and Setup/Usage Info

The PowerShell scripts and setup/usage information is available here.

Get Started with Confluent or Kafka

If you’ve been tasked with streaming real-time data for reporting or other purposes, please drop us a line today. Our team of Data & Analytics experts will be happy to review your situation together.

Share: Twitter Facebook LinkedIn