No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cereebro-sample-server-eureka-addon
cereebro-sample-server-eureka-client
cereebro-sample-snitch-app1
cereebro-sample-snitch-app2
.gitignore
.travis.yml
LICENSE.txt
Procfile
README.md
lombok.config
pom.xml

README.md

cereebro-samples

Project home : cereebro.io

TL;DR;

See Cereebro in action here : http://sample.cereebro.io

Running locally

If you want to run the samples locally, you should activate the Spring profile named local to target URLs on your machine :

  • From eclipse : add --spring.profiles.active=local in Run configurations... > cereebro-sample-xxx > Arguments > Program arguments
  • Using maven (in the sample project directory) : mvn spring-boot:run -Dspring.profiles.active=local
  • Launching a packaged sample : java -jar cereebro-sample-xxx.jar --spring.profiles.active=local

Details

Read how to get started with Cereebro and Spring Cloud Netflix.

cereebro-eureka-addon-diagram

This sample is made of 3 main applications :

If you don't want to mix-up your Eureka Server with Cereebro, you can check out cereebro-sample-cloud-netflix-server-eureka-client which targets the Eureka Server remotely.

cereebro-sample-cloud-netflix-server-eureka-addon

Cereebro Server as a Eureka Server extension -- 2-in-1.
You should see app1 and app2 registered as Eureka service instances.

The Cereebro Snitch for Spring Cloud detects relationship from the application, then pushes the information as additional meta-data on the Eureka Server.

When you access the system graph page, the server browses its internal instance registry to aggregate all the metadata available (from both app1 and app2).

See it deployed :

cereebro-sample-cloud-netflix-server-eureka-client

Standalone Cereebro Server that acts as a Eureka Client, consuming the Eureka Server API.

This is an alternative to 2-in-1 solution above.

cereebro-eureka-client-diagram

The result is actually the same, the difference being that this standalone Cereebro Server has to make a remote call to the Eureka Server HTTP API.
You can use this strategy if you don't want to mix up your service registry and component graph resolution.

See it deployed :