KafkaSpectre

KafkaSpectre is a Go-based Kafka cluster auditor that identifies unused, orphaned, and misconfigured topics.
It connects to your Kafka cluster to analyze topic metadata, consumer groups, and partition usage, providing risk-based cleanup recommendations.
Status
- Phase 1 (Audit): ready
- Phase 2 (Check): planned
Installation
From source
git clone https://github.com/ppiankov/kafkaspectre.git
cd kafkaspectre
make build
Binary will be at bin/kafkaspectre.
Binary releases
Coming soon.
Usage
Audit
./bin/kafkaspectre audit --bootstrap-server localhost:9092
Check (coming soon)
./bin/kafkaspectre check --repo ./my-app --bootstrap-server localhost:9092
See docs/cleanup-guide.md for the full cleanup workflow.
Architecture
┌─────────────┐ ┌──────────────┐ ┌─────────────┐ ┌──────────────┐
│ Scanner │───▶│ Analyzer │───▶│ Scorer │───▶│ Reporter │
│ (Static) │ │ (Matching) │ │ (Status) │ │ (JSON/Text) │
└─────────────┘ └──────────────┘ └─────────────┘ └──────────────┘
│ │
▼ ▼
┌─────────────┐ ┌──────────────┐
│ Repo Files │ │ Kafka Client │
│ (Topic Refs)│ │ (Metadata) │
└─────────────┘ └──────────────┘
License
MIT License — see LICENSE.