Getting Started
Dependency
<dependency><br> <groupId>de.codecentric</groupId><br> <artifactId>spring-boot-admin-starter-server</artifactId><br> </dependency>
Annotation
@EnableAdminServer
configuration options<br>
spring.boot.admin.context-path
spring.boot.admin.monitor.period
10,000<br>
spring.boot.admin.monitor.status-lifetime<br>
10,000<br>
spring.boot.admin.monitor.connect-timeout<br>
2,000<br>
spring.boot.admin.monitor.read-timeout<br>
5,000<br>
spring.boot.admin.routes.endpoints<br>
"env", "metrics", "trace", "dump", "jolokia", "info", "configprops", "activiti", "logfile", "refresh", "flyway", "liquibase", "loggers"<br>
spring.boot.admin.metadata-keys-to-sanitize<br>
".password$", ".*secret$", ".*key$", ".$token$", ".credentials.", ".*vcap_services$"<br>
Spring Cloud Discovery
Dependencies
<dependency><br> <groupId>org.springframework.cloud</groupId><br> <artifactId>spring-cloud-starter-eureka</artifactId><br></dependency>
Annotations
@EnableDiscoveryClient
Properties
eureka.client.serviceUrl.defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
management.security.enabled: false
spring.boot.admin.discovery.ignored-services
spring.boot.admin.discovery.services
Clustering
Dependencies
<dependency><br> <groupId>com.hazelcast</groupId><br> <artifactId>hazelcast</artifactId><br></dependency><br>
Beans
@Bean<br> public Config hazelcastConfig() {<br> return new Config().setProperty("hazelcast.jmx", "true")<br> .addMapConfig(new MapConfig("spring-boot-admin-application-store").setBackupCount(1)<br> .setEvictionPolicy(EvictionPolicy.NONE))<br> .addListConfig(new ListConfig("spring-boot-admin-event-store").setBackupCount(1)<br> .setMaxSize(1000));<br> }
Properties<br>Hazelcast configuration options<br>
spring.boot.admin.hazelcast.enabled=true<br>
spring.boot.admin.hazelcast.application-store="spring-boot-admin-application-store"
spring.boot.admin.hazelcast.event-store="spring-boot-admin-event-store"<br>
Notifications
Reminder notifications
Notifier
RemindingNotifier
Filtering notifications
Notifier
FilteringNotifier
Mail notifications
Dependencies
<dependency><br> <groupId>org.springframework.boot</groupId><br> <artifactId>spring-boot-starter-mail</artifactId><br></dependency>
Properties
spring.boot.admin.notify.mail.enabled=true<br>spring.boot.admin.notify.mail.ignore-changes="UNKNOWN:UP"<br>spring.boot.admin.notify.mail.to="root@localhost"<br>spring.boot.admin.notify.mail.to<br>spring.boot.admin.notify.mail.cc<br>spring.boot.admin.notify.mail.from<br>spring.boot.admin.notify.mail.subject="#{application.name} (#{application.id}) is #{to.status}"<br>spring.boot.admin.notify.mail.text="#{application.name} (#{application.id})\nstatus changed from #{from.status} to #{to.status}\n\n#{application.healthUrl}"<br>
PagerDuty notifications
OpsGenie notifications
Hipchat notifications
Slack notifications
Let’s Chat notifications
Microsoft Teams notifications
Telegram notifications