Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Our repository including some small changes (e.g. startup scripts, ..) is on inspectIT labs: https://github.com/inspectit-labs/spring-petclinic-microservices

Start/Stop Application with inspectIT

  1. Clone the code from https://github.com/inspectit-labs/spring-petclinic-microservices and use branch "inspectIT"
  2. You can start the PetClinic Microservices application including the inspectIT agents either using with or without docker

...

  1. :

With Docker (Docker-compose)

...

  1. Download and install version 1.7.9.92 of inspectIT from: www.inspectit.rocks
  2. Navigate to the code of the PetClinic Microservices application and run the following command to build the docker

...

  1. image: mvn clean install -PbuildDocker

...

  1. Start all applications:docker-compose -f docker-compose-inspectIT.yml up -d
  2. During startup you can track services availability using Eureka dashboard available by default at http://localhost:8761
  3. The CMR is started automatically but the inspectIT UI has to be opened from the installed version.
  4. In inspectIT the agents of the PetClinic Microservices application should be listed and connected.
  5. When the application is running it can be accessed here: http://localhost:8080
  6. You can stop the application with: docker-compose -f docker-compose-inspectIT.yml stop

Without Docker

  1. Download and install latest version of inspectIT from: www.inspectit.rocks
  2. After the installation start CMR and inspectIT
  3. Linux
    1. Open a terminal
    2. Navigate to the code of the PetClinic Microservices application and start: ./start_all_with_inspectIT.sh <path to inspectIT agent>
    3. The inspectIT agent can be found in the installation directory of inspectIT
    4. During startup the application is opened automatically in the browser. First the Eureka dashboard will be opened where you can track services availability.
    5. To stop all processes you can use the script : ./stop_all.sh

...

  1. Windows
    1. Open

...

    1. cmd
    2. Navigate to the code of the PetClinic Microservices application and start: start_all_with_inspectIT.bat <path to inspectIT agent>
    3. The inspectIT agent can be found in the installation directory of inspectIT

    4. During startup the application is opened automatically in the browser. First the Eureka dashboard will be opened where you can track services availability.
    5. By closing the windows all processes will be stopped automically