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:latest
sudo apt install -y protobuf-compiler
You can use Homebrew:
brew install protobuf
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
Ensure that the /go/bin
directory is in your PATH:
PATH="${PATH}:${HOME}/go/bin"
go get google.golang.org/protobuf
go get google.golang.org/grpc/
docker run -p 9090:9090 -v ./.config/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
go get github.com/prometheus/client_golang/prometheus
git clone https://github.com/prometheus/prometheus.git
cd prometheus
make build
./prometheus --config.file=<your_config_file>.yml
../prometheus/prometheus --config.file=.config/prometheus.yml