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

19th
Nov 2017
Jose Armesto
@fiunchinho
Nov 19 2017 16:44
using Spring Cloud Dalston.SR4 I get metrics for http requests done by Feign/Hystrix if I go to /metrics. How would I go about getting those metrics to show up on /promemtheus ?
Marcin Grzejszczak
@marcingrzejszczak
Nov 19 2017 17:11
Jose Armesto
@fiunchinho
Nov 19 2017 17:12
AFAICT those docs tell you how to do it when using RestTemplate, but it doesn't work for Feign
I'm using micrometer, with the legacy dependency
Marcin Grzejszczak
@marcingrzejszczak
Nov 19 2017 17:13
your question was that you have the metrics in /metrics but would like to have them also in /prometheus ?
Jose Armesto
@fiunchinho
Nov 19 2017 17:13
yes
I'm making calls to my pong service and this metric shows up on /metrics gauge.servo.hystrix.hystrixcommand.http://pong.pongclient#hello().90
but it doesn't on the /prometheus endpoint
Marcin Grzejszczak
@marcingrzejszczak
Nov 19 2017 17:16
ah interesting
ping someone on the micrometer slack maybe?
Jose Armesto
@fiunchinho
Nov 19 2017 17:17
yeah, I did that with no response so far :/
not that many people there
Marcin Grzejszczak
@marcingrzejszczak
Nov 19 2017 17:18
:/
Jose Armesto
@fiunchinho
Nov 19 2017 17:20
is Feign/Ribbon the Spring recommended tools for http requests between services?
Marcin Grzejszczak
@marcingrzejszczak
Nov 19 2017 17:22
it depends ;) I personally prefer tools like WebClient and RestTemplate
Jose Armesto
@fiunchinho
Nov 19 2017 17:24
can you do retries easily with those tools ? I mean, like when using ribbon
Marcin Grzejszczak
@marcingrzejszczak
Nov 19 2017 17:24
Jose Armesto
@fiunchinho
Nov 19 2017 17:26
is this aware of different instances for a single VIP address? I could send request to instance A of service SERVICE and if that fails, try with instance B of service SERVICE