Permalink
Browse files

Add some hints in the docs to trigger info and endpoint updates

  • Loading branch information...
joshiste committed Oct 19, 2018
1 parent 814f525 commit 2d05959bba6ecda431611208d410100b50c4c61d
@@ -3,6 +3,8 @@
The Spring Boot Admin Server can use Spring Clouds `DiscoveryClient` to discover applications. The advantage is that the clients don't have to include the `spring-boot-admin-starter-client`. You just have to add a `DiscoveryClient` implementation to your admin server - everything else is done by AutoConfiguration.
TIP: Spring Boot Admin will only update the info and available endpoints when a application changes status or when the registration changes. If you want to trigger an update with every new deployment, you can add a key value pair that changes with every restart (e.g. `eureka.instance.metadata-map.startup: ${random.int}`).
[[spring-cloud-discovery-static-config]]
==== SimpleDiscoveryClient configuration ====
@@ -11,6 +11,8 @@ eureka: #<1>
instance:
leaseRenewalIntervalInSeconds: 10
health-check-url-path: /actuator/health
metadata-map:
startup: ${random.int} #needed to trigger info and endpoint update after restart
client:
registryFetchIntervalSeconds: 5
serviceUrl:

0 comments on commit 2d05959

Please sign in to comment.