Overview
OpenSRE 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. All operations are read-only.Prerequisites
- Apache Kafka cluster (2.x or later)
- Network access from the OpenSRE environment to the Kafka brokers
confluent_kafkaavailable in the OpenSRE environment (installed with the project)
Setup
There is no dedicatedopensre integrations setup kafka wizard today. Configure via environment variables or the persistent store, then verify.
Option 1: Environment variables
Option 2: Persistent store
Credentials
Common configurations
MSK (AWS Managed Kafka) with IAM:Investigation tools
Verify
AdminClient.list_topics call.
Troubleshooting
Security
- Use SASL_SSL in production — avoid
PLAINTEXToutside local development. - Create a dedicated Kafka user with Describe permissions only — no produce or consume.
- Store credentials in
.envor the integration store, not in source code.