Skip to content

Spring REST app to learn various monitoring and logging options and the deployment pipeline via CircleCI and Docker

Notifications You must be signed in to change notification settings

abykoshy/spring-rest-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Spring REST app to learn various monitoring and logging options and the deployment pipeline via CircleCI and Docker

For monitoring, there exists Actuator which has by default 2 services actuator/health and actuator/info enable just by adding the dependency in pom. This can be customized as shown in HealthCheck.java

For logging request, a standard CommonsRequestLoggingFilter is available and can be just configured as in RestApplication.java. Basic customization can be done as shown in CustomRequestLoggingFilter

For performance monitoring, a PerformanceMonitorInterceptor can be used as shown in PerformanceMetricsConfiguration

This app is then built automatically on any push on Git, using CircleCI using configuration in config.yml and then a Docker image is built on the Docker Hub

The generated Docker image can be run locally using the commands

docker pull abykoshy/spring-rest-ci

docker run -d -p 8080:8080 abykoshy/spring-rest-ci

About

Spring REST app to learn various monitoring and logging options and the deployment pipeline via CircleCI and Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published