Add Voyager tunnel and monitoring telemetry

This commit is contained in:
2026-09-27 22:11:16 -04:00
parent 34c03bc047
commit b91af32561
5 changed files with 189 additions and 24 deletions
+19 -1
View File
@@ -67,6 +67,9 @@ async function loadTelemetry() {
}
function telemetryStatus(systems) {
const wireguard = systems.wireguard || {};
const monitoring = systems.monitoring || {};
return [
{
name: 'Backups',
@@ -103,6 +106,21 @@ function telemetryStatus(systems) {
value: systems.system.summary,
detail: systems.system.detail
},
{
name: 'Tunnel',
state: wireguard.state || 'offline',
label: wireguard.health === 'healthy' ? 'Healthy' :
wireguard.health === 'partial' ? 'Partial' : 'Unavailable',
value: wireguard.summary || 'Unavailable',
detail: wireguard.detail || 'WireGuard telemetry unavailable'
},
{
name: 'Monitoring',
state: monitoring.state || 'offline',
label: monitoring.health === 'healthy' ? 'Healthy' :
monitoring.health === 'partial' ? 'Partial' : 'Unavailable',
value: monitoring.summary || 'Unavailable',
detail: monitoring.detail || 'Monitoring telemetry unavailable'
},
];
}