To get started with Kafka, you can use the following Docker command:
docker run --name kafka -p 9092:9092 -e ALLOW_PLAINTEXT_LISTENER=yes -e KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true bitnami/kafka:latestsudo apt install -y protobuf-compilerYou can use Homebrew:
brew install protobufgo install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2Ensure that the /go/bin directory is in your PATH:
PATH="${PATH}:${HOME}/go/bin"go get google.golang.org/protobufgo get google.golang.org/grpc/docker run -p 9090:9090 -v ./.config/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheusgo get github.com/prometheus/client_golang/prometheusgit clone https://github.com/prometheus/prometheus.gitcd prometheus
make build./prometheus --config.file=<your_config_file>.yml../prometheus/prometheus --config.file=.config/prometheus.yml