Fix NOC data fetch and update roadmap

This commit is contained in:
2026-05-03 13:14:15 -05:00
parent 6d9c85c48d
commit d9eb653ace
2 changed files with 19 additions and 12 deletions
+10 -10
View File
@@ -319,23 +319,23 @@
<h3>Portfolio NOC</h3>
<p>
JSON-driven dashboard showing real inventory, online/offline checks,
service labels, latency, and last-check timestamps.
service labels, latency, and last-check timestamps across 28 systems.
</p>
</div>
<div class="noc-card">
<div class="noc-card-badge done">✅ Live</div>
<h3>Automated Data Pipeline</h3>
<p>
Python script on Biggie (Proxmox) pings 28 systems every 5 minutes,
writes structured JSON, and pushes to GitHub automatically via cron.
</p>
</div>
<div class="noc-card">
<div class="noc-card-badge next">⚙️ Next</div>
<h3>Automated Data Updates</h3>
<p>
Scheduled scripts auto-refresh system status and push dashboard-ready
JSON on a cron interval — no manual updates.
</p>
</div>
<div class="noc-card">
<div class="noc-card-badge future">📈 Future</div>
<h3>Grafana + Prometheus</h3>
<p>
Full observability stack for Proxmox, TrueNAS, K3s, Raspberry Pi,
Uptime Kuma, and APRS edge systems with real-time metrics.
Uptime Kuma, and APRS edge systems with real-time metrics ingestion.
</p>
</div>
</div>
+9 -2
View File
@@ -35,7 +35,12 @@ async function loadNocStatus() {
try {
// Cache-bust to always get fresh data
const res = await fetch(`https://chasedumphord.com/data/noc-status.json?t=${Date.now()}`);
// Use absolute URL when on NOC subdomain, relative when on main portfolio
const nocDataUrl = window.location.hostname === 'noc.chasedumphord.com'
? `https://chasedumphord.com/data/noc-status.json?t=${Date.now()}`
: `data/noc-status.json?t=${Date.now()}`;
const res = await fetch(nocDataUrl);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
@@ -229,6 +234,8 @@ async function loadGithubRepos() {
}
}
}
// Build the alert panel from system data
function renderAlerts(systems, alertList) {
const scored = systems
.map((sys) => {
const sev = (sys.severity || "").toLowerCase();
@@ -268,4 +275,4 @@ async function loadGithubRepos() {
</div>
`;
}).join("");
}
}