Commit Graph

7 Commits

Author SHA1 Message Date
Egutierrez dfd55dc10a feat(hub): dashboard + deploy del scraper NATS server-level del cluster unibus
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>
2026-06-07 21:19:42 +02:00
egutierrez 1803833b50 feat(hub): monitorización del cluster unibus — dashboard + deploy del exporter
- 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>
2026-06-07 20:26:04 +02:00
Egutierrez ec779b6ece feat(hub): rol por nodo en deploy scripts + variable role multiselect con filtro en Fleet Overview 2026-06-07 18:00:37 +02:00
Egutierrez 41a1075b91 feat(hub): deploy_agent_termux.sh (runit+Termux:Boot+wake-lock, helpers shell battery/logcat), panels de batería + logs unificados en node detail 2026-06-07 14:25:45 +02:00
Egutierrez a099488a9d feat(hub): Loki (config+datasource), panel de logs en node detail, stat nodos caídos + overview compacto, loki_url en deploy_agent 2026-06-07 13:22:00 +02:00
Egutierrez e87069d366 feat(hub): dashboards Grafana as-code (overview + node detail) + provisioning yaml + deploy_agent.sh 2026-06-07 12:54:39 +02:00
Egutierrez 527742b7c5 feat: project fleet_monitoring (monitorización de flota: agente + hub VM/Grafana) 2026-06-07 12:45:40 +02:00