Skip to content

francescofavatella/monitoring-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitoring Stack

prometheus + grafana + spring + docker

prometheus

http://localhost:9090 http_server_requests_seconds_count

Docker

https://prometheus.io/docs/prometheus/latest/installation/

http_server_requests_seconds_count

Docker compose

https://docs.docker.com/compose/gettingstarted/

docker-compose up

grafana

https://grafana.com/docs/grafana/latest/installation/docker/

http://localhost:3000

Username: admin Password: admin

Create dashboards

https://ops.tips/blog/initialize-grafana-with-preconfigured-dashboards/

springboot

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published