Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/tools/kafka/sasl-scram/Makefile

22 lines
524 B

HOST_IP ?= host.docker.internal
TOPIC ?= promtail
RF ?= 1
PARTS ?= 3
BROKER_LIST := $(shell ../broker-list.sh $(HOST_IP))
start-kafka:
docker-compose up -d zookeeper
docker-compose exec zookeeper kafka-configs \
--zookeeper localhost:22181 \
--alter \
--add-config 'SCRAM-SHA-512=[iterations=8192,password=kafkaadmin-pass],SCRAM-SHA-512=[password=kafkaadmin-pass]' \
--entity-type users --entity-name kafkaadmin
docker-compose up -d kafka
stop-kafka:
docker-compose down
print-brokers:
@echo $(BROKER_LIST)