prometheus + grafana + spring + docker
http://localhost:9090 http_server_requests_seconds_count
https://prometheus.io/docs/prometheus/latest/installation/
http_server_requests_seconds_count
https://docs.docker.com/compose/gettingstarted/
docker-compose up
https://grafana.com/docs/grafana/latest/installation/docker/
Username: admin Password: admin
https://ops.tips/blog/initialize-grafana-with-preconfigured-dashboards/
Create app https://spring.io/guides/gs/spring-boot-docker/
https://spring.io/guides/gs/actuator-service/ https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html
./gradlew clean build && java -jar build/libs/spring-app-0.0.1-SNAPSHOT.jar
mkdir -p build/dependency && (cd build/dependency; jar -xf ../libs/*.jar)
curl localhost:8080
{"timestamp":"2020-12-25T17:21:30.311+00:00","status":404,"error":"Not Found","message":"","path":"/"}%
curl localhost:8080
Hello Docker World%
sudo lsof -i tcp:8080
http://localhost:8080/actuator/prometheus
http_server_requests_seconds_count