feat(observability): add standalone observability compose stack

Add docker-compose.observability.yml to run Grafana, Prometheus, Loki,
Alertmanager, Alloy and Node Exporter independently of Manage.
Includes a standalone Prometheus config, empty file-SD placeholder,
and runbook documentation.
This commit is contained in:
Developer
2026-06-16 14:55:25 +00:00
parent e2ad731b5f
commit 7f9b40cd4f
4 changed files with 293 additions and 0 deletions
+24
View File
@@ -183,6 +183,30 @@ docker compose up -d
---
## Standalone Observability Stack
You can run the observability services on their own without the Manage backend or frontend:
```bash
cd /path/to/manage
docker compose -f docker-compose.observability.yml up -d
```
This starts Prometheus, Grafana, Loki, Alertmanager, Alloy and Node Exporter. Exposed ports:
| Service | URL |
|---------|-----|
| Grafana | <http://localhost:3000> |
| Prometheus | <http://localhost:9090> |
| Alertmanager | <http://localhost:9093> |
| Loki | <http://localhost:3100> |
| Node Exporter | <http://localhost:9100> |
| Alloy | <http://localhost:12345> |
Grafana defaults to `admin` / `admin`. Datasources and dashboards are provisioned automatically.
To scrape a Manage backend from this standalone stack, edit `monitoring/prometheus/prometheus.standalone.yml` and add a static target for the backend's `/metrics` endpoint, or drop a file-SD JSON file into `monitoring/prometheus/file-sd/`.
## Scaling Notes
- The current `deploy.resources` blocks are tuned for a small homelab. Raise memory limits if you monitor many machines or retain logs longer than 30 days.