Skip to content

Commit

Permalink
Feature/persist data (#865)
Browse files Browse the repository at this point in the history
* Prometheus and grafana data persistance
* update the docs

---------

Signed-off-by: Stanislav Viyachev <[email protected]>
  • Loading branch information
Coiling-Dragon authored Mar 9, 2023
1 parent 31dc2a8 commit 5ff9ae3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ coverage.txt

scripts/**/*.yml

.vscode
.vscode

# Ignore data persistence
prometheus_data
grafana_data
8 changes: 2 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
- --web.enable-lifecycle
volumes:
- ./monitoring/prometheus:/etc/prometheus
- prometheus_data:/monitoring/prometheus
- ./monitoring/prometheus_data:/prometheus
links:
- alertmanager:alertmanager

Expand All @@ -66,10 +66,6 @@ services:
- 3000:3000
volumes:
- ./monitoring/grafana/provisioning:/etc/grafana/provisioning/
- grafana_data:/var/lib/grafana
- ./monitoring/grafana_data:/var/lib/grafana
depends_on:
- prometheus

volumes:
prometheus_data: {}
grafana_data: {}
3 changes: 2 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,5 @@ By default, the Prometheus service is on port `9090`. The Grafana one is on port
- The default metrics path is set on `:9090/metrics`. The Prometheus UI is available on `:9090/graph`.
- The validator's metrics are on `:<VALIDATORS_HOST_PORT>/api/v1/metrics`.
For the `validator` example `:80/api/v1/metrics` and for the `alice` example `:6200/api/v1/metrics`
- The default credentials for Grafana are configurable through the `config-overrides.env` files in `./monitoring/grafana/` in the respective deployments folders.
- The default credentials for Grafana are configurable through the `config-overrides.env` files in `./monitoring/grafana/` in the respective deployments folders.
- The data for Prometheus and Grafana is persisted in ./monitoring/prometheus_data and ./monitoring/grafana_data. The folders will be autogenerated the after the first docker-compose

0 comments on commit 5ff9ae3

Please sign in to comment.