Skip to main content
HealOps queries Kafka to retrieve topic partition health, consumer group lag, and broker metadata — helping diagnose lag spikes, under-replicated partitions, and consumer group failures during incidents.

Prerequisites

  • Apache Kafka cluster (2.x or later)
  • Network access from the HealOps environment to the Kafka brokers

Setup

Option 1: Interactive CLI

Select Kafka when prompted and provide your bootstrap servers.

Option 2: Environment variables

Add to your .env:

Option 3: Persistent store

Common configurations

MSK (AWS Managed Kafka) with IAM:
Confluent Cloud:

Investigation tools

When HealOps investigates a Kafka-related alert, two diagnostic tools are available:
  • Topic health — lists topic partition metadata: leader, replicas, ISR status, and under-replicated partitions
  • Consumer group lag — retrieves committed offsets vs high watermarks per partition for a specific consumer group
All operations are read-only.

Verify

Expected output:

Troubleshooting

Security best practices

  • Use SASL_SSL in production — avoid PLAINTEXT outside of local development.
  • Create a dedicated Kafka user with Describe permissions only — no produce or consume.
  • Store credentials in .env, not in source code.