mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
feat: add DO server (web host) monitoring block to JARVIS Server panel
- /api/do now includes do_server key with jarvis-do agent metrics (CPU, RAM, disk, uptime from Tailscale-connected DO server agent) - Front page JARVIS SERVER panel has WEB HOST section with live CPU/RAM/DISK bars from DO server agent data - Panel title updated to show 10.48.200.211 (JARVIS VM IP) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -550,6 +550,21 @@ function renderDO(d) {
|
||||
</div>`;
|
||||
}).join('');
|
||||
}
|
||||
|
||||
// WEB HOST (DO server agent metrics)
|
||||
const ds = d.do_server || {};
|
||||
const doStatus = document.getElementById('do-host-status');
|
||||
const doCpu = document.getElementById('do-cpu');
|
||||
const doMem = document.getElementById('do-mem');
|
||||
const doDisk = document.getElementById('do-disk');
|
||||
if (ds.online) {
|
||||
if (doStatus) { doStatus.textContent = '●'; doStatus.style.color = 'var(--green)'; }
|
||||
if (doCpu) doCpu.textContent = (ds.cpu || 0) + '%';
|
||||
if (doMem) doMem.textContent = (ds.mem || 0) + '%';
|
||||
if (doDisk) doDisk.textContent = (ds.disk || 0) + '%';
|
||||
} else {
|
||||
if (doStatus) { doStatus.textContent = '○'; doStatus.style.color = 'var(--red)'; }
|
||||
}
|
||||
}
|
||||
|
||||
async function loadNetwork() {
|
||||
|
||||
Reference in New Issue
Block a user