Commit abd2c279 authored by Michael Peter's avatar Michael Peter

Update Readme

parent 8a534505
......@@ -8,25 +8,41 @@ Additionally, you can spin up a minimal monitoring setup with preconfigured [Pro
## Requirements
- Java JDK >1.8
- Maven
- Docker
- Docker-compose
- default port 8080
- default port 8080 for the application
- port 3000 and 9090 for Grafana and Prometheus
- port 9100 and 9200 for NodeExporter and cAdvisor
If you want to build the application without Docker:
## Build Docker Image
- Java JDK >1.8
- Maven
## Build the build Docker image
Clone or download this repository and cd into this folder.
```sh
docker build -f Dockerfile.build -t build-image .
```
## Build the application inside the build container
```sh
docker run -v /var/run/docker.sock:/var/run/docker.sock spring
```
## Start demo application and Prometheus stack
```bash
mvn package dockerfile:build
sh start.sh
```
## Start demo application
## Stop demo application and Prometheus stack
```bash
docker-copose up [-d]
sh stop.sh
```
## Accessing the demo application
......@@ -49,18 +65,9 @@ docker-copose up [-d]
![Dashboard2](https://knowledge.rootknecht.net/user/pages/01.home/monitoring-with-prometheus/grafana2.png)
```bash
docker-compose -f docker-compose.prom.yml up [-d]
```
Access [Grafana](localhost:3000) (admin:admin) and [Prometheus](localhost:9090) and find a configured data source as well as dashboards for showing Prometheus itself and a basic java Micrometer dashboard.
## Stop and clean up containers
```bash
docker-compose -f docker-compose.prom.yml -f docker-compose.yml down --remove-orphans
```
## Official Documentation
- [spring.io getting started](https://spring.io/guides/gs/spring-boot/)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment