Questions tagged [spring-cloud-consul]

Spring Cloud Consul provides Consul integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.

Spring Cloud Consul features:

  • Service Discovery: instances can be registered with the Consul agent and clients can discover the instances using Spring-managed beans
  • Supports Ribbon, the client side load-balancer via Spring Cloud Netflix
  • Supports Zuul, a dynamic router and filter via Spring Cloud Netflix
  • Distributed Configuration: using the Consul Key/Value store
  • Control Bus: Distributed control events using Consul Events

https://cloud.spring.io/spring-cloud-consul/

154 questions
1
vote
1 answer

Not able to load logback.xml from Consul

The issue goes like this I have all my configuration for the project in Consul KV store The configuration includes application.yml, logback.xml and few other configurations needed by my project. Using bootstrap.yml for Spring Cloud Consul…
Nauman Shah
  • 342
  • 2
  • 12
1
vote
1 answer

Reaching yaml consul config from Spring-Boot

I try to use Consul as configuration server with Spring boot. I already succeed to use the kv store of consul to fetch variables, but now I want to be able to fetch variables as YAML files. Here is my bootstrap.yaml : spring: cloud.consul: …
1
vote
0 answers

service register in consul,but it show is now critical

my project's configure is: spring-cloud-dependencies is Dalston.RELEASE, springboot is 1.5.8.RELEASE; the dependencies like: org.springframework.cloud
lingo
  • 11
  • 2
1
vote
1 answer

Consul not showing services registered in different node

I have a cluster of 3 nodes of consul servers. I have registered one service(FooService) with one of the server(Server1). When i check the registered services using http (/v1/agent/services) from the server(Server1) it is showing correctly. But when…
SHM
  • 182
  • 1
  • 2
  • 15
1
vote
1 answer

Listening to context Refreshed in Spring cloud consul config

Spring cloud consul config allows dynamic refresh of properties whenever the property is changed in consul. Is there a way to listen whenever the change happens? @Component public class ContextRefreshListener { @EventListener public void…
SHM
  • 182
  • 1
  • 2
  • 15
1
vote
1 answer

How to config consul cluster in spring?

If there is only one consul node, it can config consul like following: spring: cloud: consul: host: localhost port: 8500 But if there is consul cluster, for example there are three concul nodes. in this case, how to config the…
bwg
  • 21
  • 2
1
vote
1 answer

Consul configuration on conditional property spring boot

How can I write consul configuration class on the conditional property, I have done and tested with properties, But want to write configuration class and that configuration should be load on condition.
Ravat Tailor
  • 1,193
  • 3
  • 20
  • 44
1
vote
1 answer

Cross platform service discovery with consul

I have developed simple micro service using String boot. I register my service with consul using spring cloud. Now my question is how another application is written in different language ie. node or PHP consume my service from consul.
Nitin
  • 2,701
  • 2
  • 30
  • 60
1
vote
1 answer

Consul issue with spring boot 2.0.0

I just migrated to latest spring boot 2.0.1.RELEASE and started using cloud version "Finchley.RC1". I am using consul as config and service registry/discovery server. But as soon as I start the application it tries to load the config from…
rishi
  • 1,792
  • 5
  • 31
  • 63
1
vote
0 answers

Spring boot register to more than one registry?

Does anyone know how to get spring boot to registrer to more than one registry service, e.g. eureka and consul. We were hoping to run them in parallel for a while before the switch. Field registration in…
user4433284
1
vote
1 answer

Consul is throwing error of spring boot health Url (401)

I have configured consul with my spring boot application, I have basic Auth to access the url. If I hit localhost:8081/health it is asking for basic authentication and status is UP but in consul UI it is throwing an error HTTP GET…
Ravat Tailor
  • 1,193
  • 3
  • 20
  • 44
1
vote
1 answer

Docker-Compose dynamically assigned ports with Consul

I'm running a number of Spring Boot applications (with Actuator) that use Consul for service discovery. If I start the applications using docker-compose, specifying both the Host and Container port for each of the containers then they register…
Steve Davis
  • 167
  • 14
1
vote
0 answers

what are the states of consul watcher

I want to watch the status of my sprintboot applications health through consul. I referred this . The watch part of my consul config file: "watches": [ { "type": "checks", "state": "critical", …
Narka Buru
  • 85
  • 1
  • 6
1
vote
0 answers

Spring Cloud Consul auto register of HTTP check not working

According to section 3.2 of the Spring Cloud Consul manual: An HTTP Check is created by default that Consul hits the /health endpoint every 10 seconds. However, the log of my application reveals that this health check is missing. The property…
Erwin de Gier
  • 632
  • 7
  • 12
1
vote
1 answer

Shared config possible using Spring cloud consul config?

We're using Spring Cloud Consul Config 1.3-RELEASE on Java 8 for simple app helloworldclient, works as expected with bootstrap.xml... spring: cloud: consul: token: xxxx-xxxx-xxxx-xxxx discovery: enabled: true …
raffian
  • 31,267
  • 26
  • 103
  • 174