Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevcodez/spring-boot-dashboard-scheduled-tasks
Dashboard to track scheduled tasks in a spring boot application
https://github.com/kevcodez/spring-boot-dashboard-scheduled-tasks
bulma spring spring-boot vue vue-awesome vue-router vuejs vuejs2 yarn
Last synced: about 2 months ago
JSON representation
Dashboard to track scheduled tasks in a spring boot application
- Host: GitHub
- URL: https://github.com/kevcodez/spring-boot-dashboard-scheduled-tasks
- Owner: kevcodez
- Created: 2018-05-17T21:01:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-16T20:22:14.000Z (over 6 years ago)
- Last Synced: 2024-05-01T14:42:28.948Z (8 months ago)
- Topics: bulma, spring, spring-boot, vue, vue-awesome, vue-router, vuejs, vuejs2, yarn
- Language: Vue
- Homepage:
- Size: 478 KB
- Stars: 19
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-boot-dashboard-scheduled-tasks
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.
# Images
## Overview
![Overview of the jobs](images/dashboard_1.PNG?raw=true)
* Switch between environments
* List of all services configured
* Select a specific service to view jobs from the service
* Info about latest run
* Status from latest run (not run, failed, success)## Mobile View
![Mobile view](images/dashboard_2.PNG?raw=true)
## Specific Job
![View runs from a specific job](images/dashboard_3.PNG?raw=true)
* Last 10 runs with timings
* Stats
** Average runtime
** Run count
** Exceptions occured
* CRON settingsIf the job did not run yet, it looks like this:
![Specific job, when job did not run yet](images/dashboard_4.PNG?raw=true)
## Specific run
![Data from a specific run](images/dashboard_5.PNG?raw=true)
* View error details
* View timing# Configuration
The getEnvironmentSettings.js includes the environments and URLs to the services providing scheduled task tracking data.
You can configure multiple services.
```js
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"
}
]
}
}
}
```# Features
* Switch between different environments
* Support for multiple services
* Get an overview of all jobs
* Get all jobs from a specific service
* View successful, failed and jobs that did not run yet
* View a run history of a any job
* Trigger a job
* View a specific run
* View errors from jobs, of occured# Development
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](https://github.com/pagekit/vue-resource) is used. Vue-Resource also lets you add authentication very easily.
# Building for production
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
```