Toll Calculator

docker run --name kafka -p 9092:9092 -e ALLOW_PLAINTEXT_LISTENER=yes -e KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true bitnami/kafka:latest 

Installing protobuf compiler (protoc compiler)

For linux users or (WSL2)

sudo apt install -y protobuf-compiler

For Mac users you can use Brew for this

brew install protobuff

Installing GRPC and Protobuffer plugins for Golang

  1. Protobuffers
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
  1. GRPC
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
  1. NOTE that you need to set the /go/bin directory in your path Just like this or whatever your go directly lives.
PATH="${PATH}:${HOME}/go/bin"
  1. install the package dependencies 4.1 protobuffer package
go get google.golang.org/protobuf

4.2 grpc package

go get google.golang.org/grpc/

Installing Prometheus

Install Prometheus in a Docker container

docker run -p 9090:9090 -v ./.config/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus

Installing prometheus golang client

go get github.com/prometheus/client_golang/prometheus

Installing Prometheus natively on your system

  1. Clone the repository
git clone https://github.com/promtheus/prometheus.git
  1. Install
cd prometheus
make build
  1. Run the Prometheus deamon
./promtheus --config.file=<your_config_file>yml
  1. In the projects case that would be (running from inside the project directory)
../prometheus/prometheus --config.file=.config/prometheus.yml