Full stack Docker Compose demo with Grafana dashboard

Add a full stack demo using Docker Compose that runs Rest Server,
Prometheus and Grafana with a Rest Server dashboard.
This commit is contained in:
Konrad Wojas
2017-10-30 17:05:56 +01:00
committed by Zlatko Čalušić
parent d1504d7d66
commit 213ff91b05
9 changed files with 1074 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
# Rest Server Grafana Dashboard
This is a demo [Docker Compose](https://docs.docker.com/compose/) setup for
[Rest Server](https://github.com/restic/rest-server)
with [Prometheus](https://github.com/restic/rest-server)
and [Grafana](https://grafana.com/).
![Grafana dashboard screenshot](screenshot.png)
## Quickstart
Build `rest-server` in Docker:
cd ../..
make docker_build
cd -
Bring up the Docker Compose stack:
docker-compose build
docker-compose up -d
Check if everything is up and running:
docker-compose ps
Grafana will be running on [http://localhost:8030/](http://localhost:8030/)
with username "admin" and password "admin". The first time you access it
you will be asked to setup a data source. Configure it like this (make sure
you name it "prometheus", as this is hardcoded in the example dashboard):
![Add data source](datasource.png)
The Rest Server dashoard can be accessed
[here](http://localhost:8030/dashboard/file/rest-server.json).
Prometheus can be accessed on [http://localhost:8020/](http://localhost:8020/).
If you do a backup like this, some graphs should show up:
restic -r rest:http://127.0.0.1:8010/demo1 -p ./demo-passwd init
restic -r rest:http://127.0.0.1:8010/demo1 -p ./demo-passwd backup .