host-metrics/configs/kafka/create-topic.sh
2026-09-17 22:31:35 +02:00

10 lines
434 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
/opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
--create --if-not-exists --topic host-metrics-v1 \
--partitions 6 --replication-factor 1 \
--config cleanup.policy=delete --config retention.ms=259200000 \
--config retention.bytes=1073741824 --config min.insync.replicas=1
/opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 \
--describe --topic host-metrics-v1