twinformatics / eureka-consul-adapter

This project contains a Spring Boot Starter that registers HTTP endpoints on a Spring Cloud Eureka server to support Prometheus's service discovery mechanism for Consul (<consul_sd_config>)
MIT License
103 stars 35 forks source link

when accessing endpoint /v1/catalog/service/my-service returning empty [] result #19

Closed aspiringpawan closed 5 years ago

aspiringpawan commented 5 years ago

Hello,

I am using eureka-consul-adapter version 1.0.0 and facing issue while accessing endpoint "/v1/catalog/service/my-service" returning empty[] as response. Using Spring boot 2.0.6 and Spring cloud version Finchley.Release.

tine2k commented 5 years ago

Do you see your service in /v1/catalog/services?

aspiringpawan commented 5 years ago

Yes. All registered services in eureka is showing but response is like :{"API-GATEWAY":[],"CONFIG-SERVER":[]}. Apart from adding dependency for eureka-consul-adapter . is there any configuration property required to be added ?

tine2k commented 5 years ago

try /v1/catalog/service/API-GATEWAY. the service name is case-sensitive.

aspiringpawan commented 5 years ago

Thanks. It's working.