I got Spring Boot Admin running locally with Eureka Service Discovery (No SBA Dependeny in the Clients). Now i tried to deploy it in Cloudfoundry. According the Documentation, Version 2.0.1 should "support CloudFoundry out of the box".
My Problem is that when I scale a service up to multiple instances, they are all registered under the same hostname and port. Eureka shows me all Instances with their InstanceID that I configured like this:
eureka:
instance:
instanceId: ${spring.application.name}:${vcap.application.instance_id:${spring.application.instance_id:${random.value}}}
But Spring Boot Admin only lists one instance with hostname:port as identifier. I think i have to configure something on the client so that it sends the instance ID per HTTP Header when registering. But i don't know how.