Skip to content

Commit

Permalink
Merge pull request #12 from Informatievlaanderen/chore/add-prometheus
Browse files Browse the repository at this point in the history
Chore/add prometheus
  • Loading branch information
rorlic authored Jul 3, 2024
2 parents d0e5ba9 + 1a4655c commit 43b981c
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
53 changes: 51 additions & 2 deletions load-testing/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,58 @@ networks:

services:

prometheus:
image: prom/prometheus:latest
container_name: performance_testing_prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
expose:
- 9090
networks:
- performance_testing


pyroscope:
container_name: performance_testing_pyroscope
image: grafana/pyroscope:${PYROSCOPE_TAG:-latest}
ports:
- ${PYROSCOPE_PORT:-4040}:4040
networks:
- performance_testing
healthcheck:
test: ["CMD", "wget", "-qO-", "http://pyroscope:4040/ready"]
interval: 12s
timeout: 3s
retries: 20


grafana:
container_name: performance_testing_grafana
image: grafana/grafana:${GRAFANA_TAG:-main}
environment:
- GF_FEATURE_TOGGLES_ENABLE=flameGraph
ports:
- ${GRAFANA_PORT:-3000}:3000
networks:
- performance_testing
depends_on:
- pyroscope
healthcheck:
test: ["CMD", "wget", "-qO-", "http://grafana:3000/api/health"]
interval: 12s
timeout: 3s
retries: 20


jmeter-runner:
container_name: performance_testing_jmeter-runner
image: ghcr.io/informatievlaanderen/jmeter-runner:20240409t1532
image: ghcr.io/informatievlaanderen/jmeter-runner:20240424t1412
networks:
- performance_testing
ports:
Expand Down Expand Up @@ -44,7 +93,7 @@ services:
ldes-server-workbench:
container_name: performance_testing_ldio-workbench
# image: ghcr.io/informatievlaanderen/ldi-orchestrator:latest
image: ldes/ldi-orchestrator:${LDI_ORCHESTRATOR_TAG:-2.5.0-SNAPSHOT}
image: ldes/ldi-orchestrator:${LDI_ORCHESTRATOR_TAG:-2.5.1-SNAPSHOT}
networks:
- performance_testing
ports:
Expand Down
9 changes: 9 additions & 0 deletions load-testing/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
global:
scrape_interval: 1m

scrape_configs:
- job_name: 'ldes-server'
scrape_interval: 15s
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['ldes-server:8080']

0 comments on commit 43b981c

Please sign in to comment.