This PR adds monitoring capabilities to the Java Spring Boot application by integrating Spring Boot Actuator and Docker. It addresses the issue #5 raised by @ghramcode18.
Summary of Changes
Added Spring Boot Actuator dependency in the build.gradle file to enable monitoring endpoints.
Configured Actuator to expose metrics related to MySQL connection status, cron job execution time, heap usage, and memory allocation.
Enabled JMX export to allow monitoring tools to access the metrics.
Modified the application.properties file to enable Actuator endpoints and JMX export, and to expose Prometheus metrics endpoint.
Created a Dockerfile to containerize the application.
Created a docker-compose.yml file to run the application and monitoring tools (Prometheus and Grafana) as a multi-container Docker application.
Please review and merge this PR to enable monitoring capabilities in the application.
Fixes #5.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/add-monitoring-capabilities
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR adds monitoring capabilities to the Java Spring Boot application by integrating Spring Boot Actuator and Docker. It addresses the issue #5 raised by @ghramcode18.
Summary of Changes
Please review and merge this PR to enable monitoring capabilities in the application.
Fixes #5.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.