Spring boot service with mongoDB CRUD example
This is a simple example of a Spring boot service with mongoDB CRUD.
Start MongoDB, Prometheus, Grafana, and the service with the following commands:
docker-compose up -d
Connect MongoDB using Compass The GUI for MongoDB:
Stop the service with the following command:
docker-compose down
You can start a MongoDB container using Docker with the following command:
docker run -d -p 27017:27017 --name mongodb mongo
gradle bootRun
http://localhost:8080/actuator
http://localhost:8080/actuator/health
http://localhost:8090/api-docs/
http://localhost:8090/swagger-ui/index.html
http://localhost:8080/actuator/prometheus
Check Prometheus scraping metrics:
Raw metrics: http://localhost:9090/metrics
Owner: beemi.raja@gmail.com