Giter VIP home page Giter VIP logo

sleuth-webflux-sample's Introduction

A sample demonstrating Spring Cloud Sleuth 2 with Zipkin

This is a sample set of apps that demonstrates how tracing information carries over from a client app to a service app and then gets aggregated into Zipkin UI

Using Docker

First create the images for all apps using

./gradlew jibDockerBuild

and then

docker-compose up

The application helper UI to send sample requests via the Client-App to the service app will be available at http://<dockerip>:8080

Zipkin UI will be at http://<dockerip>:9411 Graphana at http://<dockerip>:3000 and Prometheus at http://<dockerip>:3000

Without Docker

Start Zipkin

Start RabbitMQ first

rabbitmq-server

Start Zipkin integrated with RabbitMQ:

curl -sSL https://zipkin.io/quickstart.sh | bash -s

Once Zipkin jar is downloaded, run it this way:

RABBIT_ADDRESSES=localhost java -jar zipkin.jar

Client App

./gradlew -p applications/sample-client-app clean bootRun

Sample Service App

./gradlew -p applications/sample-service-app clean bootRun

Testing

Assuming that httpie is installed

http POST 'http://localhost:8080/passthrough/messages' id="1" payload="one"   delay="1000"

OR with CURL

curl -X "POST" "http://localhost:8080/passthrough/messages" \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -d $'{
  "id": "1",
  "payload": "one",
  "delay": "1000"
}'

Trace information should get logged into the console and end up in Zipkin UI available at http://localhost:9411

Generating load

A gatling based load can be sent to the app using:

./gradlew -p applications/load-scripts  -DTARGET_URL=http://localhost:8080 -DSIM_USERS=50 gatlingRun

sleuth-webflux-sample's People

Contributors

bijukunjummen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.