Prerequisites
- Apache Kafka cluster (2.x or later)
- Network access from the HealOps environment to the Kafka brokers
Setup
Option 1: Interactive CLI
Option 2: Environment variables
Add to your.env:
Option 3: Persistent store
Common configurations
MSK (AWS Managed Kafka) with IAM: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
Verify
Troubleshooting
Security best practices
- Use SASL_SSL in production — avoid
PLAINTEXToutside of local development. - Create a dedicated Kafka user with Describe permissions only — no produce or consume.
- Store credentials in
.env, not in source code.
Tracer