Add Voyager tunnel and monitoring telemetry
This commit is contained in:
+19
-1
@@ -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'
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user