Skip to content

Commit

Permalink
Include grafana and prometheus in docker compose and k6 for loadtests
Browse files Browse the repository at this point in the history
  • Loading branch information
usuletw022 committed Oct 17, 2023
1 parent c1c86cb commit 30e16b1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,18 @@ services:
- --host-port=0.0.0.0:8080
ports:
- "8080:8080"

grafana:
image: grafana/grafana:7.5.7
ports:
- 3000:3000
restart: unless-stopped

prometheus:
image: prom/prometheus:v2.45.1
ports:
- "9090:9090"
volumes:
- ./prometheus:/etc/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
Binary file added k6
Binary file not shown.
11 changes: 11 additions & 0 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
global:
scrape_interval: 15s

scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: [ 'host.docker.internal:9090' ]
- job_name: 'endpoints'
static_configs:
- targets: ['gateway:9312', 'manager:9410']

0 comments on commit 30e16b1

Please sign in to comment.