Hi All,
Following is my configuration for consul in the Spring Boot project
spring.application.name=hs-integration-api
spring.cloud.consul.host=http://<my_host>
spring.cloud.consul.port=8500
spring.config.import=consul:
spring.cloud.consul.config.enabled=true
spring.cloud.consul.config.prefix=conf
spring.cloud.consul.config.name=hs-service-project/hs-integration-api/conf/qa/resources/properties
I am getting the following continued unwanted GET API calls with a 404 status code
http://<my_host>:8500/v1/kv/conf/application/
http://<my_host>:8500/v1/kv/conf/application,default
http://<my_host>:8500/v1/kv/conf/hs-service-project/hs-integration-api/conf/qa/resources/properties,default
Please help to avoid these.
apart from your spring boot config, The API GET calls to the following Consul endpoint resulting in a 404 status code is straight-forward. They are the Consul KV store, 404 means those key-values are not existed in Consul KV store.
http://<my_host>:8500/v1/kv/conf/application/
http://<my_host>:8500/v1/kv/conf/application,default
http://<my_host>:8500/v1/kv/conf/hs-service-project/hs-integration-api/conf/qa/resources/properties,default
To further verify if those KVs are existed or not, you can run CLI consul kv get
inside the Consul server.
Hii,
In Consul my path is http://<my_host>:8500/v1/kv/conf/hs-service-project/hs-integration-api/conf/qa/resources/properties
In the properties folder, I stored my all KV.
But http://<my_host>:8500/v1/kv/conf/application/
/application/ folder I have not created but I don’t know why I am getting events with /application folded.
And I don’t have default value in my consul but getting events with default value.
In production env every minute I am getting these events continuously.
Do you have any idea how can I avoid all events?