Skip to content

marhan/spring-boot-micrometer-sample

Repository files navigation

Spring Boot Micrometer sample project

This project is meant as sandbox for experiments and sample implementation for Spring Boot 2 with Micrometer.

The state of this repository is still work in progress, but should run without issues.

Requirements (Run)

  • Docker / Docker Compose (RAM 4 GB min.)

Requirements (Dev)

  • Java JDK 11
  • Node.js 8

Introductions

Run complete monitoring environment

Step 1

./start_complete_stack.sh

This script will do the steps via Docker ...

  • start and configured all monitoring products like (Elasticsearch, Kibana, Prometheus, ...).
  • build and start the Vue.js Frontend frontend project.
  • build and start the Spring Boot backend project.

Step 2

Open application via browser

This script will do the steps via Docker ...

  • stop and remove all docker containers.
  • remove all created docker volumes.

Dev hints

Stop and destroy all containers with its volumes manually

docker-compose stop && docker-compose rm -f -v
docker volume remove spring-boot-micrometer-sample_elasticsearch_data
docker volume remove spring-boot-micrometer-sample_grafana_data
docker volume remove spring-boot-micrometer-sample_prometheus_data
docker volume remove spring-boot-micrometer-sample_kibana_data

Rebuild one container

docker-compose up -d --no-deps --build grafana

Start dev docker-compose

docker-compose -f docker-compose-dev.yml up -d --force-recreate --build

Endpoints & Services

Choas Monkey

run experiment

chaos run chaos/experiment.json

Further informations

TODO

  • Chaos Engineering via Chaos Monkey created by codecentric
  • Trigger chaos via Chaos Toolkit
  • Timer Meter
  • Ability to create new apartments
  • Spring Integration tests
  • Build and test with Travis-CI
  • Spring Boot Dev Tools
  • Send metrics to InfluxDB

About

Spring Boot 2 with Micrometer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published