Netflix / eureka

AWS Service registry for resilient mid-tier load balancing and failover.
Apache License 2.0
12.42k stars 3.75k forks source link

dependency conflict between eureka-client and micrometer-spring-legacy #1431

Open lukemao opened 3 years ago

lukemao commented 3 years ago

Hi,

I am not sure if there is a known conflict between eureka-client(1.9.4) and micrometer-spring-legacy https://javadoc.io/doc/io.micrometer/micrometer-spring-legacy/latest/index.html

I am currently configuring a highly dependent springboot(1.4.7) microservice to be monitored by Prometheus.

To configure Prometheus with low version of spring boot, we need to use micrometer-spring-legacy. Once I added this micrometer dependency to pom.xml, I am start to get eureka error:

DiscoveryClient_UNKNOWN/HostName .... There is no known eureka server, cluster server list is empty

If I remove that micrometer dependency, eureka works fine.

I wonder if you have seen similar issues before, or can help me to find the root cause.

Thanks in advance.

lukemao commented 3 years ago

And I saw in the failed case: can not find properties specified: eureka-client

Why it did not read from application.properties file?

yiyuzhou commented 2 years ago

The existing open source work on eureka 2.0 is discontinued. The code base and artifacts that were released as part of the existing repository of work on the 2.x branch is considered use at your own risk.

Eureka 1.x is a core part of Netflix's service discovery system and is still an active project.