Skip to content

Commit 160039b

Browse files
Move the prometheus URL to the metrics docker compose
1 parent 64985c5 commit 160039b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

grafana/provisioning/datasources/datasource.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ datasources:
66
uid: prometheus
77
access: proxy
88
orgId: 1
9-
url: http://prometheus:9090
9+
url: "${PROMETHEUS_URL}"
1010
basicAuth: false
1111
isDefault: true
1212
editable: true

metrics-docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ services:
2727
- POSTGRES_DB=postgres
2828
- POSTGRES_USER=postgres
2929
- POSTGRES_PASSWORD=postgres
30+
- PROMETHEUS_URL=http://prometheus:9090
3031
extra_hosts:
3132
- "host.docker.internal:host-gateway"
3233
restart: unless-stopped

0 commit comments

Comments
 (0)