rest-server/examples/compose-with-grafana
2018-01-21 19:36:01 +01:00
..
dashboards Grafana dashboard fix: select instance 2017-10-30 17:05:56 +01:00
datasource.png Full stack Docker Compose demo with Grafana dashboard 2017-10-30 17:05:56 +01:00
demo-passwd Full stack Docker Compose demo with Grafana dashboard 2017-10-30 17:05:56 +01:00
docker-compose.yml Full stack Docker Compose demo with Grafana dashboard 2017-10-30 17:05:56 +01:00
grafana.ini Full stack Docker Compose demo with Grafana dashboard 2017-10-30 17:05:56 +01:00
prometheus.yml Full stack Docker Compose demo with Grafana dashboard 2017-10-30 17:05:56 +01:00
README.md Update examples/compose-with-grafana/README.md 2018-01-21 19:36:01 +01:00
screenshot.png Full stack Docker Compose demo with Grafana dashboard 2017-10-30 17:05:56 +01:00

Rest Server Grafana Dashboard

This is a demo Docker Compose setup for Rest Server with Prometheus and Grafana.

Grafana dashboard screenshot

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/ 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

The Rest Server dashboard can be accessed on http://localhost:8030/dashboard/file/rest-server.json.

Prometheus can be accessed on 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 .