Skip to content
Snippets Groups Projects
Commit eb3bffdf authored by Christopher Luzzi's avatar Christopher Luzzi
Browse files

Update application/README.md

parent c05c4251
Branches luzzi-main-patch-24833
No related tags found
1 merge request!1Update 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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment