Aggregator service for product API
go mod vendor
go build -o aggregator
docker build . -t dgoldstein1/aggregator
docker-compose up -d
export MONGO_URL="mongodb://localhost:27017"
./aggregator
time mongo 127.0.0.1/products docker/mongo/insert_data.js
curl -s http://localhost:8080/products/13860428 | jq
curl -s http://localhost:8080/products/13860428 \
-XPUT \
-d \
'{"price" : 10.50 }' | jq
curl -s http://localhost:8080/products/13860428 | jq
Internal metrics are recorded through prometheus. To visualize metrics, go to http://localhost:3000 and explore metrics dashboards.