RSocket Proxy for Prometheus monitoring

- Rename spring-cloud-dataflow-samples/tree/master/micrometer to spring-cloud-dataflow-samples/tree/master/micrometer-samples
 - Rename spring-cloud-dataflow-samples/tree/master/micrometer/tasks to spring-cloud-dataflow-samples/tree/master/micrometer-samples/task-apps
 - Add the apps under spring-cloud-dataflow-samples/tree/master/micrometer/stream-apps
 - Describe or cross-link the description of the new architecture in the root README
 - Add microsite SCDF monitoring links

 Resolves #122
This commit is contained in:
Christian Tzolov
2019-11-02 16:27:08 +01:00
parent 369ecce9ba
commit f8078ed08f
68 changed files with 2287 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
package com.example.demoprocessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Processor;
import org.springframework.messaging.handler.annotation.SendTo;
@SpringBootApplication
@EnableBinding(Processor.class)
public class DemoProcessorApplication {
@StreamListener(Processor.INPUT)
@SendTo(Processor.OUTPUT)
public String myProcessor(String payload) {
return "Processed: " + payload;
}
public static void main(String[] args) {
SpringApplication.run(DemoProcessorApplication.class, args);
}
}

View File

@@ -0,0 +1,17 @@
package com.example.demoprocessor;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class DemoProcessorApplicationTests {
@Test
public void contextLoads() {
}
}