These are chat archives for spring-cloud/spring-cloud

12th
Jul 2017
Dominik Gätjens
@dcg
Jul 12 2017 06:10
hello
is there a way to configure eureka.instance.statusPageUrl: without knowing the server ip/hostname? it seems to me that the config expects a fully qualified url
Dominik Gätjens
@dcg
Jul 12 2017 06:30
the doc says statusPageUrlPath: ${management.context-path}/info but eureka tells me java.lang.RuntimeException: java.net.MalformedURLException: no protocol: /manage/info so i wonder if the doc is incomplete and i need to add the protocol and ip/host
Dominik Gätjens
@dcg
Jul 12 2017 06:36
ok there is ${eureka.hostname} thats the varaible i need
just for info there seem to be a bug when eureka.instance.statusPageUrl: http://${eureka.hostname}/${management.context-path}/info is configured the second variable doesn't get resovled and the entry in eureka looks like <statusPageUrl>http://4.3.2.1/${management.context-path}/info</statusPageUrl>
Dave Syer
@dsyer
Jul 12 2017 06:50
Stupid question: did you set the management context path?
Dominik Gätjens
@dcg
Jul 12 2017 07:04
yes management.context-path: /manage and without eureka.hostname it resolves the varaible
i think this is nothing major because you can easily work around it like eureka.instance.statusPageUrl: http://${eureka.hostname}:1337/manage/info
Dave Syer
@dsyer
Jul 12 2017 07:17
eureka.hostname is something you added
I'm not really sure why you can't make it work as you expected
I suppose there is something else about your project that we can't see
wooshie
@wooshie
Jul 12 2017 07:44
hi, what could cause such thing for eureka itself (output of health endpoint of eureka's actuator)?
{"status":"DOWN","discoveryComposite":{"description":"Spring Cloud Eureka Discovery Client","status":"UP","discoveryClient":{"description":"Spring Cloud Eureka Discovery Client","status":"UP","services":[]},"eureka":{"description":"Remote status from Eureka server","status":"UNKNOWN","applications":{}}},"diskSpace":{"status":"UP","total":228624789504,"free":184822743040,"threshold":10485760},"rabbit":{"status":"DOWN","error":"org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused (Connection refused)"},"refreshScope":{"status":"UP"},"hystrix":{"status":"UP"}}
we don't have rabbitmq stuff related to eureka
Dave Syer
@dsyer
Jul 12 2017 07:52
You have Spring AMQP on the classpath.
I don't think that's anything to do with Eureka
wooshie
@wooshie
Jul 12 2017 07:52
ok
Dave Syer
@dsyer
Jul 12 2017 07:52
but it's a choice you made
wooshie
@wooshie
Jul 12 2017 07:52
will check
@dsyer many thanks :)
Dominik Gätjens
@dcg
Jul 12 2017 08:14
@dsyer what do you mean with eureka.hostname is something i added? the docs say: (Note that ${eureka.hostname} is a native placeholder only available in later versions of Eureka. You could achieve the same thing with Spring placeholders as well, e.g. using ${eureka.instance.hostName}.)
Dave Syer
@dsyer
Jul 12 2017 08:24
Ah. Right.
I forgot about that.
I guess it's a System property, and it is set before the Spring config file is read.
Dominik Gätjens
@dcg
Jul 12 2017 08:25
or it gets resolved by eureka
Dave Syer
@dsyer
Jul 12 2017 08:25
But you still haven't really provided enough information to diagnose your problem
Dominik Gätjens
@dcg
Jul 12 2017 08:25
because the jvm can't know which interface / ip is the correct
Dave Syer
@dsyer
Jul 12 2017 08:25
Where did you set the management.context-path?
Dominik Gätjens
@dcg
Jul 12 2017 08:26
application-prod.properties that gets deliverd via spring configuration service
Dave Syer
@dsyer
Jul 12 2017 08:26
And where do you set the eureka.instance.statusPageUrl?
Dominik Gätjens
@dcg
Jul 12 2017 08:27
in the application-prod.properties too, but also tried zuul-prod.properties
both from config server
Dave Syer
@dsyer
Jul 12 2017 08:27
I don't see why that wouldn't work
Dominik Gätjens
@dcg
Jul 12 2017 08:28
can you point me to the class that shoud do the substitution, then i can place a breakpoint and can provide more detailed information
and what excatly means native placeholder? Note that ${eureka.hostname} is a native placeholder
Dave Syer
@dsyer
Jul 12 2017 08:44
I don't recall
eureka.instance.statusPageUrl is a property in EurekaInstanceConfigBean. You can put a break point there to see who is setting it.
Dominik Gätjens
@dcg
Jul 12 2017 08:55
ok i'll try later and will report back
Ankur
@ankurbhakta
Jul 12 2017 19:10
i have a question in spring cloud stream, for event choreography is there anyway i can implement routing slip?
jramsdale
@jramsdale
Jul 12 2017 23:24
I’m using Hystrix Javanica annotations in my app on 4 different classes but only 1 is showing up in my dashboard; I get no exceptions in my log to explain why 3 don’t work. Any suggestions on how to track down why they aren’t picked up by annotation scanning?