Add the unibus-nats Grafana dashboard and the per-node deploy script for the
unibus_exporter NATS-local mode, which surfaces the server-level NATS/JetStream
metrics that /healthz cannot (msgs/s, connections, KV bucket msgs, RAFT leader
per stream, memory, restarts).
- hub/dashboards/unibus-nats.json (uid unibus-nats, datasource victoriametrics):
12 panels — NATS up, connections, msgs/s in, slow consumers, JetStream msgs,
nats-server restarts (1h); msgs/s per node (in/out), connections per node,
KV bucket msgs per bucket, nats-server memory per node; RAFT leader per stream
table, JetStream per node table. Picked up automatically by the existing
"fleet" dashboard provider (scans the dashboards path).
- hub/deploy_unibus_nats_exporter.sh: deploys unibus_exporter in NATS-local mode
on a node. magnus pushes to the local VictoriaMetrics (no auth); homer/datardos
push to the public ingest endpoint with basic auth (pass fleet/ingest-pass,
never in argv). Installs unibus-exporter-nats.service and probes 8222 to warn if
the monitoring endpoint is not yet open. Does NOT restart membershipd or touch
the cluster — that is the consolidated 0.11.0 rollout.
The scraper code (unibus_exporter NATS-local mode) and the registry parser
(parse_nats_monitor_go_infra) ship in their own repos; see report
unibus-nats-metrics-clean for the integration order.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- hub/dashboards/unibus-cluster.json: dashboard 'unibus — Cluster' (carpeta Fleet,
datasource VictoriaMetrics): nodos up, cluster_size, nodos caídos, posture homogénea
segura, matriz de posture por nodo (enforce/acl/tls/cluster/store-kv), latencia de
scrape y tabla de estado por nodo. Panel meta-leader preparado (n/d sin métricas NATS).
- hub/deploy_unibus_exporter.sh: compila el exporter, sube binario + CA del cluster a
magnus e instala el servicio systemd apuntando a la VictoriaMetrics local.
El exporter (apps/unibus_exporter, sub-repo Gitea propio) compone parse_unibus_health +
format_prom_exposition + push_prom_remote del registry.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>