docs: add Prometheus inventory export script for diagram/documentation pipeline

This commit is contained in:
beatz174-bit
2026-04-13 16:29:10 +10:00
parent 7646f8187b
commit c0ed8cfc5f
4 changed files with 530 additions and 0 deletions
+11
View File
@@ -44,3 +44,14 @@ flowchart TB
```
For a request-flow/network view and architecture notes, see [docs/architecture.md](docs/architecture.md).
## Prometheus Runtime Inventory Export
Use `scripts/export_prometheus_inventory.py` to snapshot Prometheus-observed runtime inventory into versionable artifacts for docs/diagram workflows.
```bash
export PROMETHEUS_URL="https://prometheus.example.com"
python3 scripts/export_prometheus_inventory.py --output-dir docs/runtime
```
This writes raw API snapshots and a normalized inventory JSON under `docs/runtime/`, and updates `docs/prometheus-inventory.md`.