From 929a6619c819a75662c10b6de2234d824b624e64 Mon Sep 17 00:00:00 2001 From: Yuri Tatishchev Date: Wed, 30 Oct 2024 15:11:48 -0700 Subject: [PATCH] monitoring: readme for grafanalib --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index eb44bd2..49be75d 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,22 @@ running on top of TrueNAS SCALE, separating all the docker stuff from the applia # Notes +## Monitoring +The monitoring stack is set up to monitor all the containers and the host. + +This is a work in progress, Grafana is set up with grafanalib, a Python library that generates Grafana dashboards. +The dashboards are generated from Python scripts in +[grafana_config/dashboards](roles/alpina/templates/services/monitoring/grafana_config/dashboards). + +This requires a custom grafana image, which is built from the +[Dockerfile](roles/alpina/templates/services/monitoring/Dockerfile). + +This also means it has to be manually rebuilt whenever the dashboards are updated. +From the services/monitoring directory, run: +```bash +docker compose up -d --build --force-recreate grafana +``` + ## IPv6 The current configuration is designed to work with IPv6. However, because of how (not properly) I'm doing the subnetting