Apps used for the Sleuth documentation graphs . They're not using service discovery so don't treat them as reference production applications ;)
The apps are sending spans to Zipkin via RabbitMQ and spring-cloud-sleuth-stream
.
-
Confirm the org and space you are logged into. The apps will be deployed here.
-
./scripts/create_services.sh
-
./scripts/build.sh && ./scripts/deploy_leaf_services.sh
-
Look up the route for each leaf service via
cf apps
and put them intoacme-financial-back-office-microservice/manifest.yml
-
./scripts/deploy_back_office_service.sh
-
Look up the route for the back office service via
cf apps
and put it intoacme-financial-ui/manifest.yml
-
./scripts/deploy_ui.sh
-
Confirm that everything is wired together properly with
curl <uiUrlFromCfApps>/start
. The output should be:
Hello from Acme Financial's Backend service. Calling Acme Financial's Account Service [Hello from Acme Financial's Account Microservice] and then Customer Service [Hello from Acme's Customer Microservice]
-
./scripts/deploy_zipkin.sh
-
Confirm that the Zipkin UI is working via a browser using the URL from
cf apps
You need to have Docker installed.
Provide the env variable DEFAULT_HEALTH_HOST
pointing to your Docker Machine. By default it will be localhost
.
That way we'll start a RabbitMQ instance for you.
Run:
./scripts/start_with_zipkin_server.sh
Run:
./scripts/curl_start.sh
You can then navigate to http://localhost:9411/ to see the Zipkin dashboard.
You can tail the .log files in build/ to see what it happening.