diff --git a/application/README.md b/application/README.md index 81a174b05eac4f0130279f2d97e49fc70677c4cf..5a4a727d4c33b6c6d843b0aa0bf9b07db5f06325 100644 --- a/application/README.md +++ b/application/README.md @@ -32,3 +32,52 @@ npm start ``` > View on localhost:3000/start + + +### 4. Changes from Excercise 2 + +#### Create an Image + +To create an Image of the Application navigate to the application folder where the Dockerfiles is located. +Then run following command: + + +```sh +docker build -t <image-tag> . +``` + +#### Run a Container with the Image + +```sh +docker run --name <containerName> <imagename> +``` + +The Application is now running on port 3000<br> + +#### Starting the application and Prometheus + +To start the Application and Prometheues run the following command:<br> + +```sh +docker compose up +``` + +The Application is now running on Port 3000.<br> +Prometheus is running on Port 9091. <br> + + +#### Visualizing different Metrics on Prometheus + +To Visiualize different Metrics go to localhost:9091/graph <br> + +You can plot different Metrics by searching for the following Metrics: <br> + +registercounter <br> +msgSent <br> +msgLength <br> +onlineUser <br> +failedLogins <br> + + + +