Dashboard to track scheduled tasks in a spring boot application
Dashboard to track scheduled tasks in a spring boot application.
This is a dashboard based on the data retrieved via https://github.com/kevcodez/spring-boot-track-scheduled-tasks
The dashboard allows the configuration of multiple services.
If the job did not run yet, it looks like this:
The getEnvironmentSettings.js includes the environments and URLs to the services providing scheduled task tracking data.
You can configure multiple services.
export function getEnvironmentSettings() {
return {
"Test": {
"baseUrl": "https://my-api.test.de/",
"services": [
{
"host": "Billing-Service",
"url": "billing-service/scheduled-jobs"
},
{
"host": "Contract-Service",
"url": "contract-service/scheduled-jobs"
}
]
},
"Production": {
"baseUrl": "https://my-api.live.de/",
"services": [
{
"host": "Billing-Service",
"url": "billing-service/scheduled-jobs"
},
{
"host": "Contract-Service",
"url": "contract-service/scheduled-jobs"
}
]
}
}
}
Simple run yarn serve
for starting a webserver with hot reload and everything you need. You should change the URLs in getEnvironmentSettings.js.
For fetching data from the services, Vue-Resource is used. Vue-Resource also lets you add authentication very easily.
First configure your services in the getEnvironmentSettings.js file.
Build the docker image, nginx is used as server.
docker image build -t dashboard:latest .
docker run -d -p 80:80 dashboard:latest