Skip to content

pdenooijer/incident-metrics-course

Repository files navigation

Incident metrics course

This project uses Quarkus, the Supersonic Subatomic Java Framework.

If you want to learn more about Quarkus, please visit its website: https://quarkus.io/.

Prerequisites

You must have the following installed on your machine:

  • podman & podman-desktop - brew install podman podman-desktop
  • Kubernetes in Docker (kind) - brew install kind
  • Helm - brew install helm
  • Kubectl - brew install kubectl
  • Maven - brew install maven
  • Java 21 or newer - brew install openjdk@21 or brew install temurin@21

Create Kubernetes cluster

A new podman machine will be created that will run the Kubernetes cluster and image registry for this course. Run the following script:

./01-create-machine.sh

Run this command to create the Kind Kubernetes cluster on the newly created Podman machine.

./02-create-cluster.sh

Add monitoring stack

Run this command to set up the monitoring stack.

./03-monitoring-stack.sh

Package, build and run the microservices with Maven & Podman

The applications can be packaged, build and run in a single command using:

./04-build-and-run-services.sh

You can find the applications under:

Add APM integration

  1. Go to Kibana and add Elastic APM integration: http://localhost:30080/kibana/app/integrations/detail/apm/overview
  2. Under General > Server configuration change
    1. Host from localhost:8200 to apm-server-apm-server:8200
    2. URL from https://localhost:8200 to http://apm-server-apm-server:8200
  3. Save
  4. In the next popup select Add Elastic Agent later

Running the applications in dev mode

You can run your application in dev mode that enables live coding using:

mvn quarkus:dev

NOTE: Quarkus ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.

About

Incident metrics course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •