Very basic Spring Boot Admin Server generated with the Spring Initializr.
This is meant to be used as a monitor to bbdata-api applications. See the BBData API README for more details.
- set the default port to
8222
instead of8080
; - add
bootJar
target in gradle;
Create a bootable jar:
./gradlew bootJar
Launch:
./build/libs/spring-boot-admin-*.jar
For clients to connect, add the spring-boot-admin-starter-client
dependency in your build.gradle.kts
:
implementation("de.codecentric:spring-boot-admin-starter-client")
Add the following to your application.properties
:
## Spring Boot Admin
# expose every actuator available, but ensure it runs on another (secured) port !
management.server.port=8111
management.endpoints.web.exposure.include=*
# enable spring boot admin client
spring.boot.admin.client.enabled=true
# provide this server URL TODO
spring.boot.admin.client.url=http://localhost:8222
# give a name to your app (will show in the UI)
spring.boot.admin.client.instance.name=Spring Boot App Instance
Done.