Skip to content

Commit

Permalink
Added docker-compose.yml and prom.yml for testing with Prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenSmeets committed Nov 1, 2018
1 parent 034829a commit 07f1d37
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions complete/docker-compose.yml
@@ -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
9 changes: 9 additions & 0 deletions complete/prom.yml
@@ -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']

0 comments on commit 07f1d37

Please sign in to comment.