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

7th
Oct 2016
Stian Lågstad
@stianlagstad
Oct 07 2016 08:43
Hi. I'm trying to set logging.level.my.package: DEBUG locally (vs INFO from my config-repo), but I'm not figuring out how (or if it's even possible). How can I do this? I've tried setting an environment variable and I've tried setting it to DEBUG in my local bootstrap.yml file. Both works when I don't have the setting in my config-repo, but both don't work when I do have that setting in my config-repo.
Dave Syer
@dsyer
Oct 07 2016 09:10
Remote configuration beats local sys props or env vars by default
You can use command line properties I think
Or look in the guide to see all the options in setting priority if remote properties
Stian Lågstad
@stianlagstad
Oct 07 2016 12:57
Thanks.
Another thing: Do I have to do anything special to get /hystrix.stream to work other than including spring-boot-starter-actuator?
Stian Lågstad
@stianlagstad
Oct 07 2016 13:07
I got /metrics working but not /hystrix.stream
Dave Syer
@dsyer
Oct 07 2016 13:10
You have to have some Hystrix data to publish
The endpoint only works when there is data
And you might have to @EnableCircuitBreaker
Stian Lågstad
@stianlagstad
Oct 07 2016 14:22
Aw man, I was missing @EnableHystrix. Thanks :)
Bruno Simioni
@brunosimioni
Oct 07 2016 21:09
Guys, how can I set spring.cloud.stream.binders via spring boot relaxed configurations? I'm trying this env variable: SPRING_CLOUD_STREAM_BINDERS_RABBIT1_ENVIRONMENT_SPRING_RABBITMQ_HOST but getting Field error in object 'spring.cloud.stream' on field 'binders[RABBIT1_ENVIRONMENT_SPRING_RABBITMQ_HOST]': rejected value
any ideas?
Marcos Barbero
@marcosbarbero
Oct 07 2016 21:12
it won’t work because the binders itself are a map of values not a fixed property.
Bruno Simioni
@brunosimioni
Oct 07 2016 21:13
I'm currently using both spring-cloud-starter-stream-rabbit and spring-boot-starter-amqp in the same project. Since I have two different rabbitmq instances, spring-boot-starter-amqp get connection through spring.rabbitmq.host and spring-cloud-starter-stream-rabbit get through binders.
@marcosbarbero any ideias?
Marcos Barbero
@marcosbarbero
Oct 07 2016 21:14
Try to disable autoconfiguration for RabbitMQ, if you do that only the stream-rabbit will be picked up
Bruno Simioni
@brunosimioni
Oct 07 2016 21:15
The problem is that I need to receive configuration by using relaxed configuration.
passing through a -Dvariable is a solution?
Marcos Barbero
@marcosbarbero
Oct 07 2016 21:17
I don’t think you’ll be able to do that by env vars once those binders aren’t defined as a fixed property. If you want dynamic values for your binders you should use config-server, consul or any kind of external configuration instead of env vars or command line args
Bruno Simioni
@brunosimioni
Oct 07 2016 21:18
hum ok. Got it.
thanks
Marcos Barbero
@marcosbarbero
Oct 07 2016 21:19
you’re welcome, anything ping me