feat!: Urutau 2.0.0, ultralight probes and a single analysis hub
Each server runs an ultralight probe (scratch image, ~7 MiB RSS) that tails the logs, ships raw lines to the hub over HTTPS with an on-disk spool, and applies enforce decisions locally. The hub keeps one node per probe (primary node = the 1.x data dir, unchanged), does all analysis and serves the UI. Peer federation is removed. 'urutau import' brings 1.x data dirs in with hash and count verification. UI: probes page, host qualified incidents, IPs never wrap, egress heatmap labels, live and replay globes no longer auto-rotate, replay repeat, live traffic metrics. BREAKING CHANGE: URUTAU_PEERS, URUTAU_PEER_* and /api/v1/peer/* are gone; log path variables move from the hub to the probe. See docs/migration-2.0.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
23a7a5963a
commit
8546d14cef
130 files changed
+9396
-3311
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/* Urutau - INTEGRITY page ("Is the data complete?"): volume ingested per host and
|
||||
hour (holes show as empty cells), state of every source and peer, share of
|
||||
hour (holes show as empty cells), state of every source and probe, share of
|
||||
malformed lines, event log and geolocation base. Log data is hostile: every
|
||||
dynamic string goes through textContent (the shell's el/h helpers). */
|
||||
(function () {
|
||||
@@ -18,7 +18,7 @@
|
||||
'ig.lead.okBody': 'No gaps of {n} hours or more, every source answers and few lines were rejected.',
|
||||
'ig.lead.bad.one': '{n} hole in the data',
|
||||
'ig.lead.bad.other': '{n} holes in the data',
|
||||
'ig.lead.badBody': 'Silences of two hours or more in sources that normally report, offline peers or sources in error. Check the panels below.',
|
||||
'ig.lead.badBody': 'Silences of two hours or more in sources that normally report, offline probes or sources in error. Check the panels below.',
|
||||
'ig.lead.loading': 'Checking the data...',
|
||||
'ig.stat.hosts': 'Hosts reporting',
|
||||
'ig.stat.gaps': 'Gaps found',
|
||||
@@ -46,13 +46,13 @@
|
||||
'ig.state.error': 'error',
|
||||
'ig.state.degraded': 'degraded',
|
||||
'ig.state.disabled': 'disabled',
|
||||
'ig.peers.title': 'Peers',
|
||||
'ig.peers.none': 'No peers configured.',
|
||||
'ig.peers.online': 'online',
|
||||
'ig.peers.title': 'Probes',
|
||||
'ig.peers.none': 'No probes created.',
|
||||
'ig.peers.online': 'connected',
|
||||
'ig.peers.offline': 'offline',
|
||||
'ig.peers.live': 'live',
|
||||
'ig.peers.sync': 'synced {t}',
|
||||
'ig.peers.never': 'never synced',
|
||||
'ig.peers.sync': 'last seen {t}',
|
||||
'ig.peers.never': 'never seen',
|
||||
'ig.log.title': 'Event log and geolocation',
|
||||
'ig.log.off': 'The event log is off: periods, sessions and replay have no data.',
|
||||
'ig.log.days': 'Days kept',
|
||||
@@ -71,7 +71,7 @@
|
||||
'ig.lead.okBody': 'Nenhum buraco de {n} horas ou mais, todas as fontes respondem e poucas linhas foram rejeitadas.',
|
||||
'ig.lead.bad.one': '{n} buraco nos dados',
|
||||
'ig.lead.bad.other': '{n} buracos nos dados',
|
||||
'ig.lead.badBody': 'Silêncios de duas horas ou mais em fontes que costumam registrar, peers fora do ar ou fontes com erro. Veja os painéis abaixo.',
|
||||
'ig.lead.badBody': 'Silêncios de duas horas ou mais em fontes que costumam registrar, sondas fora do ar ou fontes com erro. Veja os painéis abaixo.',
|
||||
'ig.lead.loading': 'Conferindo os dados...',
|
||||
'ig.stat.hosts': 'Hosts reportando',
|
||||
'ig.stat.gaps': 'Buracos encontrados',
|
||||
@@ -99,13 +99,13 @@
|
||||
'ig.state.error': 'erro',
|
||||
'ig.state.degraded': 'degradada',
|
||||
'ig.state.disabled': 'desativada',
|
||||
'ig.peers.title': 'Peers',
|
||||
'ig.peers.none': 'Nenhum peer configurado.',
|
||||
'ig.peers.online': 'no ar',
|
||||
'ig.peers.offline': 'fora do ar',
|
||||
'ig.peers.title': 'Sondas',
|
||||
'ig.peers.none': 'Nenhuma sonda criada.',
|
||||
'ig.peers.online': 'conectada',
|
||||
'ig.peers.offline': 'offline',
|
||||
'ig.peers.live': 'ao vivo',
|
||||
'ig.peers.sync': 'sincronizado {t}',
|
||||
'ig.peers.never': 'nunca sincronizou',
|
||||
'ig.peers.sync': 'vista {t}',
|
||||
'ig.peers.never': 'nunca vista',
|
||||
'ig.log.title': 'Registro de eventos e geolocalização',
|
||||
'ig.log.off': 'O registro de eventos está desligado: períodos, sessões e replay ficam sem dados.',
|
||||
'ig.log.days': 'Dias guardados',
|
||||
@@ -169,14 +169,14 @@
|
||||
function paint() {
|
||||
if (!data) return;
|
||||
clear(box);
|
||||
var hosts = data.hosts || [], peers = data.peers || [];
|
||||
var hosts = data.hosts || [], peers = data.probes || data.peers || [];
|
||||
var gaps = 0, lines = 0, bad = 0, errors = 0, onlineN = 0;
|
||||
hosts.forEach(function (x) {
|
||||
gaps += (x.gaps || []).length;
|
||||
if (x.online) onlineN++;
|
||||
(x.sources || []).forEach(function (s) { lines += s.lines; bad += s.malformed; if (s.state === 'error' || s.state === 'degraded') errors++; });
|
||||
});
|
||||
var offline = peers.filter(function (p) { return !p.online; }).length;
|
||||
var offline = peers.filter(function (p) { return !(p.online || p.connected); }).length;
|
||||
var rate = lines + bad > 0 ? bad / (lines + bad) : 0;
|
||||
var holes = gaps + offline + errors;
|
||||
var ok = holes === 0 && rate < 0.01;
|
||||
@@ -222,9 +222,9 @@
|
||||
else {
|
||||
var pl = h('ul', 'ig-list');
|
||||
peers.forEach(function (p) {
|
||||
pl.appendChild(h('li', null, h('strong', null, p.name), ' ', U.ui.badge(t(p.online ? 'ig.peers.online' : 'ig.peers.offline'), p.online ? 'ok' : 'danger'),
|
||||
pl.appendChild(h('li', null, h('strong', null, p.name), ' ', U.ui.badge(t((p.online || p.connected) ? 'ig.peers.online' : 'ig.peers.offline'), (p.online || p.connected) ? 'ok' : 'danger'),
|
||||
p.live ? ' ' : null, p.live ? U.ui.badge(t('ig.peers.live'), 'neutral') : null, ' ',
|
||||
h('span', 'ig-muted', p.last_sync ? t('ig.peers.sync', { t: U.fmt.ago(p.last_sync) }) : t('ig.peers.never'))));
|
||||
h('span', 'ig-muted', (p.last_seen || p.last_sync) ? t('ig.peers.sync', { t: U.fmt.ago(p.last_seen || p.last_sync) }) : t('ig.peers.never'))));
|
||||
});
|
||||
pp.body.appendChild(pl);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user