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/broker-list.sh

5 lines
207 B

#!/bin/bash
CONTAINERS=$(docker ps | grep 9092 | awk '{print $1}')
BROKERS=$(for CONTAINER in ${CONTAINERS}; do docker port "${CONTAINER}" 9092 | sed -e "s/0.0.0.0:/$1:/g"; done)
echo "${BROKERS//$'\n'/,}"