Skip to content

Commit

Permalink
docker volume, improved instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Apr 13, 2023
1 parent eea2b28 commit 50eaf64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Use the following steps for monitoring:
- Open Grafana on `http://localhost:3000`. Use the following steps for initial setup:
- Login with `admin` / `admin`
- Click the cogwheel icon on the bottom left and go to "Data sources"
- Click "Add new data source", and add Prometheus with URL `http://localhost:9090/`
- Click "Add new data source", add Prometheus with URL `http://localhost:9090/` and click "Save & test"
- Click "Dashboard" in the top left menu and select "Import"
- Upload `grafana-dashboard.json` from this folder
5 changes: 5 additions & 0 deletions docker/grafana/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
- "3000:3000"
depends_on:
- prometheus
volumes:
- grafana-data:/var/lib/grafana

prometheus:
image: prom/prometheus:v2.43.0
Expand All @@ -16,3 +18,6 @@ services:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml

volumes:
grafana-data:

0 comments on commit 50eaf64

Please sign in to comment.