forked from spring-guides/gs-reactive-rest-service
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docker-compose.yml and prom.yml for testing with Prometheus
- Loading branch information
1 parent
034829a
commit 07f1d37
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3' | ||
services: | ||
web: | ||
image: "springio/gs-reactive-rest-service" | ||
ports: | ||
- "8080:8080" | ||
container_name: spring-boot | ||
prometheus: | ||
image: "prom/prometheus" | ||
ports: | ||
- "9090:9090" | ||
volumes: | ||
- ./prom.yml:/etc/prometheus/prometheus.yml | ||
container_name: prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#Global configurations | ||
global: | ||
scrape_interval: 5s # Set the scrape interval to every 5 seconds. | ||
evaluation_interval: 5s # Evaluate rules every 5 seconds. | ||
scrape_configs: | ||
- job_name: 'reactive-spring-boot-app' | ||
metrics_path: '/actuator/prometheus' | ||
static_configs: | ||
- targets: ['spring-boot:8080'] |