This repository contains a docker-compose file to run a basic home monitoring system with a Raspberry Pi or any other device that supports Docker. The system is composed of the following services:
- blackbox-exporter: Exposes an HTTP endpoint with metrics on ICMP probes and DNS lookups.
- prometheus: Collects metrics from blackbox-exporter and stores them in a time-series database.
- grafana: Visualizes the metrics stored in Prometheus.
- Docker
- Docker Compose
- Clone this repository.
- Change to the repository directory and start the services:
cd home-monitor-docker # -d flag runs the services in the background docker-compose up -d
- Access Grafana at http://localhost:3000 with the following credentials:
- Username:
admin
- Password:
admin
- Username:
- If you are new to docker, it would be helpful to install lazydocker so you can inspect the services running in your docker environment.
docker-compose down
will stop and remove the services, but will not remove the volumes. If you want to remove the volumes as well, usedocker-compose down -v
.