Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 78df114

Browse files
authored
Merge pull request #22 from grafana/fix-docker-compose
docker-compose: Fix prometheus datasource
2 parents a79a353 + deca0b9 commit 78df114

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ networks:
77

88
services:
99
prometheus:
10-
image: prom/prometheus:v2.33.5
10+
image: prom/prometheus:v2.35.0
1111
command: --web.enable-remote-write-receiver --config.file=/etc/prometheus/prometheus.yml
1212
networks:
1313
- k6
@@ -17,7 +17,7 @@ services:
1717
- "9090:9090"
1818

1919
grafana:
20-
image: grafana/grafana:8.2.6
20+
image: grafana/grafana:8.5.3
2121
networks:
2222
- grafana
2323
- prometheus
@@ -41,3 +41,5 @@ services:
4141
environment:
4242
- K6_PROMETHEUS_REMOTE_URL=http://prometheus:9090/api/v1/write
4343
- K6_OUT=output-prometheus-remote
44+
depends_on:
45+
- prometheus

example/config-datasources.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ datasources:
77
- name: prometheus-in-docker
88
type: prometheus
99
access: proxy
10-
url: prometheus:9090
10+
url: http://prometheus:9090
1111
basicAuth: false
1212
isDefault: true
1313
jsonData:

0 commit comments

Comments
 (0)