Skip to content

gh4rib/TripCost

Repository files navigation

Trip Cost

Calculate your trip cost (specifically a road trip with vehicle)

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)

sudo apt install -y protobuf-compiler

Installing GRPC and Proto-buffer plugins for Golang.

  1. Proto-buffer
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. install the package dependencies
go get google.golang.org/protobuf
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 daemon
./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

About

Calculate your trip cost (specifically a road trip with vehicle)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors