Skip to content

Commit

Permalink
start prometheus service first
Browse files Browse the repository at this point in the history
  • Loading branch information
bohandley committed Mar 8, 2024
1 parent ccce54e commit 27b4f8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ jobs:
run: |
docker compose -f docker-compose-debug.yaml pull
docker compose -f docker-compose-debug.yaml up -d
- name: Wait for grafana to start
- name: Wait for prometheus to start
uses: nev7n/wait_for_response@v1
with:
url: 'http://localhost:3099/'
url: 'http://localhost:9090/-/ready'
responseCode: 200
timeout: 20000
interval: 500
- name: Wait for prometheus to start
- name: Wait for grafana to start
uses: nev7n/wait_for_response@v1
with:
url: 'http://localhost:9090/-/ready'
url: 'http://localhost:3099/'
responseCode: 200
timeout: 20000
interval: 500
Expand All @@ -66,7 +66,7 @@ jobs:
with:
url: 'http://localhost:3099/api/datasources/uid/prometheus-amazon/health'
responseCode: 200
timeout: 100000
timeout: 20000
interval: 500
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
Expand Down
3 changes: 3 additions & 0 deletions docker-compose-debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ services:
volumes:
- ./provisioning/datasources:/etc/grafana/provisioning/datasources
- ./dist:/var/lib/grafana/plugins/prometheus-amazon
depends_on:
prometheus:
condition: service_started
volumes:
prom_data:

0 comments on commit 27b4f8a

Please sign in to comment.