Skip to main content

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_kafka available in the OpenSRE environment (installed with the project)

Setup

There is no dedicated opensre 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:
Confluent Cloud:

Investigation tools

Verify

Expected output:
Verify uses a live AdminClient.list_topics call.

Troubleshooting

Security

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