Thursday, 12 September 2019

monitoring your springboot app



-------
actuator
------
actuator will auto make some apis for your application which you can use to check your app status.

you just need to add a dependency into your pom file, then we will get it for free.

for more settings, e.g. you want to use the endpoint to showdown your springboot:


http://www.ityouknow.com/springboot/2018/02/06/spring-boot-actuator.html


----

prometheus
----


prometheus will let you to use Grafana to monitor your cpu. RAM .etc.

https://juejin.im/post/5c7fedb66fb9a04a10300e68


for Grafana:
download:
https://grafana.com/grafana/download?platform=mac
install:
use the wget , or just access the url from chrome, it will download , then just unzip the tar file.
run:

./bin/grafana-server web
access:
http://localhost:3000/
username: admin password:  admin
doc:
https://grafana.com/docs/installation/mac/



-----
spring security
----

http://blog.didispace.com/springbootsecurity/




No comments:

Post a comment