Skip to content

miklosbarabas/reliability-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reliability demo

This project was developed to demonstrate a Spring application using Micrometer.io and monitored with Prometheus and Grafana. To showcase some of the features the application is using Spring Chaos Monkey* and a load-generator is created using Gatling. Grafana dashboards are provisioned to visualize the metrics collected by Prometheus.

Getting started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

You must have docker & docker-compose installed.

Building and running

  1. Clone or download the repository

  2. Build & Run

    At the root of the project:

    docker-compose up 
    

    or if you want to rebuild the docker images:

    docker-compose up --build
    

    This method is using Docker's MultiStage build which creates an intermediary container with the build dependencies to build the artifact which is than copied to the run-container and a Docker image is created out of it. This way you do not have to install anything besides Docker and Docker Compose does that for you inside containers.

Endpoints

Chaos Monkey

Chaos Monkey for Spring Boot by Codecentric is being used to inject failures (assaults) to the application. There are endpoints provided from you can modify these on-the-fly. You can use all these from the Swagger in a convenient way. A small modification has been introduced to this library by overriding the AssaultProperties class to be able to configure less frequent assaults than 10% (e.g. chaos.monkey.assaults.level=100).

Built with

Author

Miklos Barabas - GitHub