spring-attic / spring-cloud-dataflow-metrics-collector

A companion metrics application to Spring Cloud Data Flow that helps with real-time monitoring
Apache License 2.0
3 stars 18 forks source link

Changing the Kafka Bootstrap Servers from localhost:8080 #62

Open JulieMelissa opened 5 years ago

JulieMelissa commented 5 years ago

I am using Metrics Collector Kafka 2.0.0 and Kafka is running on a different server than the Spring Cloud Data Flow Server. So I need to change bootstrap.servers = [localhost:9092] to a different host name. How do I do this? There is this same exact question on stackoverflow with no answer - https://stackoverflow.com/questions/52242582/not-able-to-put-metrics-collector-to-work-with-spring-cloud-dataflow-with-kafka

sabbyanandan commented 5 years ago

Hi, @JulieMelissa. The metrics-collector is just a Spring Cloud Stream application. You'd configure against the external Kafka cluster the same way how you'd set it for Spring Cloud Stream application. For Kafka specifically, here are all the connection properties that you can override.

There are a few Spring Cloud Stream samples that interact with multiple Kafka clusters - you could use that for reference as well.