update readme.me

This commit is contained in:
2026-05-03 03:01:53 -05:00
parent 70d67b56bd
commit 927d6be61f
+376 -445
View File
@@ -1,445 +1,376 @@
<!DOCTYPE html> <h1>Hi, I'm Chase! <br/>
<html lang="en"> Digital Systems | Infrastructure | RF Edge Systems
<head> </h1>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <h3>
I build real-world systems that combine data, automation, and infrastructure.
<title>Ced's NOC | Live Systems Dashboard</title> From monitoring platforms and dashboards to full infrastructure environments, everything I create is designed to solve practical problems and scale.
</h3>
<meta
name="description" <img align="right" alt="Coding Gorilla" width="400px" style="padding-right:10px;" src="https://gifdb.com/images/thumbnail/monkey-laptop-coding-miys12p5izw3s11s.gif" />
content="Ced's NOC — live network operations center dashboard showing real-time infrastructure health, service status, and edge system monitoring."
/> <ul>
<li>🚀 Currently building system monitoring platforms & dashboards</li>
<!-- Open Graph --> <li>🖥️ Running a full homelab (Proxmox HA Cluster, Kubernetes, Docker)</li>
<meta property="og:title" content="Ced's NOC | Live Systems Dashboard" /> <li>⚙️ Focused on infrastructure, automation, and observability</li>
<meta property="og:description" content="Live infrastructure visibility — Proxmox, K3s, TrueNAS, APRS edge systems." /> <li>🧠 Ask me about K3s clusters, system monitoring, or homelab design</li>
<meta property="og:type" content="website" /> <li>📫 Reach me: [email protected]</li>
<meta property="og:url" content="https://noc.chasedumphord.com" /> </ul>
<!-- Favicons (from main portfolio) --> ---
<link rel="icon" type="image/png" sizes="32x32" href="https://chasedumphord.com/assets/favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="https://chasedumphord.com/assets/favicons/favicon-16x16.png" /> # 🧠 Ced's NOC System
<link rel="icon" type="image/png" sizes="192x192" href="https://chasedumphord.com/assets/favicons/favicon-192x192.png" />
<link rel="apple-touch-icon" sizes="512x512" href="https://chasedumphord.com/assets/favicons/favicon-512x512.png" /> 👉 **Portfolio Site:** https://chasedumphord.com
<link rel="shortcut icon" href="https://chasedumphord.com/assets/favicons/favicon.ico" /> 👉 **Live NOC Dashboard:** https://noc.chasedumphord.com
<meta name="robots" content="index, follow" /> This repository represents a **live Network Operations Center (NOC) system**, not just a static portfolio.
<meta name="author" content="Chase Dumphord" />
It showcases:
<!-- Fonts — same as main site -->
<link rel="preconnect" href="https://fonts.googleapis.com" /> * 📊 **Ced's NOC Dashboard** (real system monitoring)
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> * 🧠 **HomeLab Infrastructure** (HA virtualization, VLANs, services)
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Syne:wght@700;800&family=DM+Sans:wght@400;500;700&display=swap" rel="stylesheet" /> * ☸️ **K3s Cluster** (distributed compute)
* 📡 **APRS iGate (RF Edge System)**
<!-- Shared stylesheet from main portfolio -->
<link rel="stylesheet" href="https://chasedumphord.com/style.css" /> ---
<!-- NOC-specific styles --> # 📊 Ced's NOC Dashboard
<style>
/* ── NOC page overrides & extras ── */ A central visibility layer for all systems.
.noc-page-hero {
padding: 3.5rem 0 2rem; This dashboard includes real Grafana, Prometheus, and Blackbox Exporter monitoring for live HomeLab services.
border-bottom: 1px solid var(--line);
} ---
.noc-page-hero .eyebrow { ## 🔍 What it shows:
margin-bottom: 0.6rem;
} * Infrastructure health
* Service availability
.noc-page-title { * Network segmentation
font-family: var(--font-display); * RF edge system status
font-size: clamp(2rem, 4vw, 3.2rem);
font-weight: 800; ---
margin: 0 0 0.75rem;
line-height: 1.1; ## 🧠 Why it matters:
}
This demonstrates:
.noc-page-title span {
color: var(--accent-2); * System monitoring mindset
} * Operational visibility
* Real-world infrastructure awareness
.noc-page-lead { * Ability to translate data into actionable insights
color: var(--muted);
font-size: 1rem; ---
max-width: 60ch;
margin: 0 0 1.5rem; ## 🖼️ Live Dashboard Preview
}
### 📊 Metrics Overview
.noc-page-meta {
display: flex; ![NOC Metrics](./screenshots/noc-metrics.png)
flex-wrap: wrap;
gap: 0.6rem 1.4rem; ### 🖥️ Systems Overview
font-family: var(--font-mono);
font-size: 0.78rem; ![NOC Systems](./screenshots/noc-systems.png)
color: var(--muted);
list-style: none; ---
padding: 0;
margin: 0; ## 🔴 Live System Status
}
![Ced's NOC](https://img.shields.io/endpoint?url=https://ced4568.github.io/ced-portfolio/data/noc-badge.json&style=for-the-badge)
.noc-page-meta a { color: var(--muted); }
.noc-page-meta a:hover { color: var(--accent-2); } ![Edge](https://img.shields.io/badge/Edge-RF%20Active-orange?style=for-the-badge)
![Portfolio](https://img.shields.io/badge/Portfolio-Live-blue?style=for-the-badge)
/* Full-width NOC content area */
.noc-full { ---
padding: 2.5rem 0 4rem;
} # 🧠 Featured System — Ced's NOC (Network Operations Center)
/* Uptime summary bar */ A real-time monitoring and observability platform built on top of my homelab infrastructure.
.uptime-bar {
display: flex; ---
flex-wrap: wrap;
gap: 0.75rem; ## 🔍 What it demonstrates:
margin-bottom: 1.5rem;
} * Live system monitoring (services, nodes, edge systems)
* Infrastructure visibility across VLANs and clusters
.uptime-pill { * Service health tracking (latency, uptime, status)
font-family: var(--font-mono); * Real data ingestion (NOT simulated)
font-size: 0.76rem; * Dashboard design for operational awareness
padding: 0.35rem 0.75rem;
border-radius: 999px; ---
border: 1px solid var(--line);
color: var(--muted); ## ⚙️ Monitoring Stack:
background: rgba(255,255,255,0.03);
} * Grafana (Visualization)
* Prometheus (Metrics collection)
.uptime-pill.online { * Blackbox Exporter (Service uptime & latency checks)
color: var(--accent-2); * Uptime Kuma (External monitoring layer)
border-color: rgba(94, 250, 204, 0.3);
background: rgba(94, 250, 204, 0.06); 👉 This is the **core system** that ties everything together.
}
---
.uptime-pill.warning {
color: var(--warning); # ⚡ NOC Automation Pipeline
border-color: rgba(242, 204, 96, 0.3);
background: rgba(242, 204, 96, 0.06); The NOC dashboard is powered by a fully automated data pipeline running on real homelab infrastructure.
}
## How It Works
.uptime-pill.offline {
color: var(--danger); ```
border-color: rgba(255, 95, 86, 0.3); Biggie (Proxmox node — 10.10.30.192)
background: rgba(255, 95, 86, 0.06); cron: */5 * * * *
} → noc_update.py
→ ICMP ping 28 systems
/* Layer filter tabs */ → record latency + online/offline status
.layer-tabs { → write data/noc-status.json
display: flex; → git commit + push to ced-portfolio
flex-wrap: wrap; → GitHub Pages deploys (~30s)
gap: 0.5rem; → noc.chasedumphord.com
margin-bottom: 1.5rem; → script.js fetches every 30s
} → live dashboard updates
```
.layer-tab {
font-family: var(--font-mono); ## Pipeline Details
font-size: 0.76rem;
font-weight: 700; * **Script:** `~/scripts/noc_update.py` on Biggie
padding: 0.35rem 0.85rem; * **Schedule:** Cron — every 5 minutes
border-radius: 999px; * **Log:** `/var/log/noc_update.log`
border: 1px solid var(--line); * **Auth:** GitHub Personal Access Token
color: var(--muted); * **Language:** Python 3
background: transparent; * **Output:** Structured JSON → `data/noc-status.json`
cursor: pointer;
transition: all 0.15s; ---
}
# 🖥️ Systems Monitored (28 Total)
.layer-tab:hover,
.layer-tab.active { ## Proxmox Cluster — 6 Nodes
color: var(--accent-2);
border-color: rgba(94, 250, 204, 0.35); | Node | IP |
background: rgba(94, 250, 204, 0.07); |------|----|
} | BigWorld | 10.10.30.250 |
| Biggie | 10.10.30.192 |
/* Roadmap section on NOC page */ | Snoop | 10.10.30.153 |
.noc-roadmap { | TooShort | 10.10.30.120 |
margin-top: 3rem; | Tupac | 10.10.30.74 |
padding-top: 2.5rem; | DrDre | 10.10.30.227 |
border-top: 1px solid var(--line);
} ## K3s Cluster — 12 Nodes
/* Stack info footer on NOC page */ | Role | Node | IP |
.noc-stack-bar { |------|------|----|
margin-top: 2.5rem; | Control Plane | django-1 | 10.10.30.72 |
padding: 1rem 1.25rem; | Control Plane | django-2 | 10.10.30.245 |
border-radius: var(--radius); | Control Plane | django-3 | 10.10.30.128 |
background: rgba(0,0,0,0.2); | Ingress Worker | node-1 | 10.10.30.219 |
border: 1px solid var(--line); | Ingress Worker | node-2 | 10.10.30.134 |
font-family: var(--font-mono); | Ingress Worker | node-3 | 10.10.30.222 |
font-size: 0.78rem; | Data Worker | node-4 | 10.10.30.126 |
color: var(--muted); | Data Worker | node-5 | 10.10.30.239 |
display: flex; | Data Worker | node-6 | 10.10.30.208 |
flex-wrap: wrap; | Monitoring Worker | node-7 | 10.10.30.198 |
gap: 0.5rem 1.5rem; | Monitoring Worker | node-8 | 10.10.30.216 |
align-items: center; | Monitoring Worker | node-9 | 10.10.30.29 |
}
## Services, Monitoring & Edge — 10 Systems
.noc-stack-bar strong {
color: var(--accent-2); | System | IP | Layer | Role |
} |--------|----|-------|------|
| TrueNAS | 10.10.30.143 | Infrastructure | Network Attached Storage |
@media (max-width: 620px) { | Nginx Proxy Manager | 10.10.30.210 | Networking | Reverse Proxy |
.layer-tabs { gap: 0.4rem; } | Prometheus | 10.10.30.140 | Monitoring | Metrics Scraping (Active) |
.layer-tab { font-size: 0.7rem; padding: 0.3rem 0.65rem; } | Grafana | 10.10.30.68 | Monitoring | Metrics Dashboard |
} | Uptime Kuma | 10.10.30.14 | Monitoring | Service Monitor |
</style> | Dashy | 10.10.30.61 | Services | HomeLab Dashboard |
</head> | Home Assistant | 10.10.30.104 | Services | Home Automation |
| PrimeStation | 10.10.30.233 | Services | Media Server |
<body> | APRS iGate Home | 10.10.30.129 | Edge | RF to APRS-IS Gateway |
| APRS iGate Mobile | 10.10.30.35 | Edge | RF Mobile Node |
<!-- ═══════════════════════════════ NAV ═══════════════════════════════ -->
<header class="site-header"> ---
<div class="container nav">
<a href="https://chasedumphord.com" class="logo">Ced<span class="logo-cursor">_</span></a> # 🧱 Foundation — Ced's Home Lab (Infrastructure + Monitoring)
<nav> Real-world environment used to simulate production systems and host services.
<ul class="nav-links">
<li><a href="https://chasedumphord.com/#snapshot">Snapshot</a></li> This is the backbone of Ced's NOC — where all systems, services, and monitoring originate.
<li><a href="https://chasedumphord.com/#about">About</a></li>
<li><a href="https://chasedumphord.com/#projects">Projects</a></li> ---
<li><a href="https://chasedumphord.com/#stack">Stack</a></li>
<li><a href="https://chasedumphord.com/#contact">Contact</a></li> ## ⚙️ Core Infrastructure
<li><a href="https://chasedumphord.com/assets/images/ChaseD_Resume.pdf" target="_blank" rel="noopener noreferrer">Resume</a></li>
</ul> * **Proxmox HA Cluster (High Availability Virtualization)**
</nav> * K3s Kubernetes cluster (Raspberry Pi - 12 nodes)
</div> * TrueNAS storage system
</header> * Docker / containerized workloads
<main id="top"> ---
<!-- ═══════════════════════════════ NOC HERO ═══════════════════════════════ --> ## 🌐 Networking Layer
<div class="noc-page-hero">
<div class="container"> * VLAN segmentation
<p class="eyebrow"> - Main Network
<span class="eyebrow-dot"></span> - IoT Network
Ced's NOC • Live Infrastructure Dashboard • Auto-refresh: 30s - HomeLab Network (10.10.30.0/24)
</p> - Guest Network
<h1 class="noc-page-title"> * Nginx Proxy Manager (external access layer)
Live Systems <span>Dashboard</span> * Cloudflare Tunnels (secure remote access)
</h1>
---
<p class="noc-page-lead">
Real-time visibility into Ced's HomeLab infrastructure — Proxmox, K3s, ## 📊 Monitoring Stack (LIVE)
TrueNAS, APRS RF edge systems, and self-hosted services.
Not simulated. Not a demo. Running hardware. * Grafana (Dashboards)
</p> * Prometheus (Metrics)
* Blackbox Exporter (Service Monitoring)
<ul class="noc-page-meta"> * Uptime Kuma (External Monitoring)
<li>📍 Oxford, MS</li>
<li><a href="https://chasedumphord.com">← Portfolio</a></li> 👉 The NOC dashboard is built directly on top of this environment.
<li><a href="https://github.com/ced4568" target="_blank" rel="noopener noreferrer">github/ced4568</a></li>
</ul> ---
</div>
</div> # 📡 Edge System — APRS iGate (RF → Internet Gateway)
<!-- ═══════════════════════════════ NOC DASHBOARD ═══════════════════════════════ --> A real-world RF system that feeds live data into infrastructure.
<div class="noc-full">
<div class="container"> ---
<!-- Status command bar --> ## ⚙️ System Components
<div class="noc-command-bar">
<span class="status-dot" id="noc-dot"></span> * Raspberry Pi + Direwolf APRS TNC
<span id="noc-status-text">Connecting to NOC feed...</span> * Audio chain tuning (critical for decode accuracy)
<span class="noc-refresh-badge" id="noc-refresh-badge"></span> * APRS-IS integration
</div> * Real beacon ingestion from handheld radios
<p class="noc-proof"> 🔗 **Project:**
Proxmox • K3s • TrueNAS • VLAN Segmentation • APRS RF Edge Systems https://github.com/ced4568/ceds-aprs-igate
</p>
---
<!-- Uptime summary pills (populated by JS) -->
<div class="uptime-bar" id="uptime-bar"></div> ## 🔥 Key Insight
<!-- Metrics --> This system bridges:
<div class="noc-metrics-grid">
<div class="noc-metric"> ```text
<h3 id="metric-nodes">--</h3> RF radio signals → Raspberry Pi / Direwolf → APRS-IS → Digital Infrastructure
<p>Infrastructure Nodes</p> ```
</div>
<div class="noc-metric"> ---
<h3 id="metric-services">--</h3>
<p>Services Online</p> ## 🎯 Key Tuning Insight
</div>
<div class="noc-metric"> * Target audio level: **~5060**
<h3 id="metric-vlans">--</h3> * Too high → clipping / decode failure
<p>Network Segments</p> * Too low → missed packets
</div>
<div class="noc-metric"> This was tuned using:
<h3 id="metric-edge">--</h3>
<p>Edge Systems</p> * Direwolf audio level output
</div> * Real beacon testing from handheld radios
</div>
---
<!-- Alert panel -->
<div class="noc-alert-panel"> # 🧠 Featured Systems
<div class="noc-alert-header">
<h3>🚨 Alert Panel</h3> <ul>
<span>Top 3 Priority Systems</span> <li>
</div> <b>📊 Ced's NOC Dashboard</b><br/>
<div id="noc-alert-list" class="noc-alert-list"> Enterprise-style monitoring platform providing real-time visibility into infrastructure, services, and edge systems.<br/>
<p class="noc-loading">Awaiting data feed...</p> <b>Highlights:</b> Prometheus metrics, Blackbox monitoring, service health tracking, Grafana dashboards.<br/>
</div> </li>
</div>
<br/>
<!-- Layer filter tabs -->
<div class="layer-tabs" id="layer-tabs"> <li>
<button class="layer-tab active" data-layer="all">All Systems</button> <b>🧱 Ced's Home Lab</b><br/>
</div> Full infrastructure environment simulating production systems using virtualization and Kubernetes.<br/>
<b>Highlights:</b> Proxmox HA cluster, 12-node K3s cluster, VLAN segmentation, reverse proxy, monitoring stack.<br/>
<!-- System cards grid --> </li>
<div id="noc-system-grid" class="noc-system-grid"></div>
<br/>
<!-- Fallback -->
<div id="noc-fallback" class="noc-fallback" style="display:none;"> <li>
<p class="noc-fallback-msg"> <b>📡 APRS iGate (RF Edge System)</b><br/>
📡 NOC feed unavailable from this context — systems run locally.<br/> RF-to-internet gateway ingesting real-world radio data into digital systems.<br/>
Data updates when the local pipeline pushes a fresh noc-status.json. <b>Highlights:</b> Audio tuning, Direwolf APRS TNC, APRS-IS integration, live beacon ingestion.<br/>
</p> </li>
</div> </ul>
<!-- Stack info bar --> ---
<div class="noc-stack-bar">
<span><strong>Stack:</strong> Python health checks → JSON → JS dashboard</span> # 🧰 Tech Stack
<span><strong>Next:</strong> Grafana + Prometheus integration</span>
<span><strong>Source:</strong> ## ⚡ Core Technologies
<a href="https://github.com/ced4568/ceds-homelab" target="_blank" rel="noopener noreferrer">
github/ceds-homelab <img align="left" alt="TypeScript" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/typescript/typescript-plain.svg" />
</a> <img align="left" alt="Git" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/git/git-original.svg" />
</span> <img align="left" alt="Linux" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/linux/linux-original.svg" />
</div> <img align="left" alt="HTML" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/html5/html5-plain.svg" />
<img align="left" alt="JavaScript" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/javascript/javascript-plain.svg" />
<!-- NOC Roadmap --> <img align="left" alt="React" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/react/react-original.svg" />
<div class="noc-roadmap"> <img align="left" alt="NodeJS" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/nodejs/nodejs-original.svg" />
<p class="section-label">// noc roadmap</p> <img align="left" alt="Python" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/python/python-plain.svg" />
<h2 class="section-h2" style="font-family:var(--font-display);font-size:1.6rem;margin:0 0 1.25rem;">Build Stages</h2> <img align="left" alt="Docker" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/docker/docker-original.svg" />
<img align="left" alt="Kubernetes" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/kubernetes/kubernetes-plain.svg" />
<div class="noc-grid"> <img align="left" alt="Grafana" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/grafana/grafana-original.svg" />
<div class="noc-card"> <img align="left" alt="Prometheus" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/prometheus/prometheus-original.svg" />
<div class="noc-card-badge done">✅ Live</div> <img align="left" alt="Bash" width="30px" style="padding-right:10px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/bash/bash-original.svg" />
<h3>Portfolio NOC</h3>
<p> <br /><br />
JSON-driven dashboard showing real inventory, online/offline checks,
service labels, latency, and last-check timestamps. ## 🖥️ Infrastructure & Systems
</p>
</div> * Proxmox HA Cluster (Virtualization)
<div class="noc-card"> * K3s Kubernetes (Raspberry Pi Cluster)
<div class="noc-card-badge next">⚙️ Next</div> * Docker / Containerized Services
<h3>Automated Data Updates</h3> * TrueNAS (Storage)
<p>
Scheduled scripts auto-refresh system status and push dashboard-ready ## 📊 Monitoring & Observability
JSON on a cron interval — no manual updates.
</p> * Grafana (Dashboards)
</div> * Prometheus (Metrics)
<div class="noc-card"> * Blackbox Exporter (Service Monitoring)
<div class="noc-card-badge future">📈 Future</div> * Uptime Kuma (External Monitoring)
<h3>Grafana + Prometheus</h3>
<p> ## 🌐 Networking & Access
Full observability stack for Proxmox, TrueNAS, K3s, Raspberry Pi,
Uptime Kuma, and APRS edge systems with real-time metrics. * Nginx Proxy Manager (Reverse Proxy)
</p> * Cloudflare Tunnels (Secure External Access)
</div> * VLAN Segmentation (UniFi Network)
</div>
</div> ## 📡 Edge & RF Systems
</div> * Direwolf (APRS TNC)
</div> * APRS-IS Integration
* Raspberry Pi iGate Systems
</main> * Audio Signal Processing / Tuning
<!-- ═══════════════════════════════ FOOTER ═══════════════════════════════ --> ## 💻 Development
<footer class="site-footer">
<div class="container footer-content"> * Python (Automation / Data Collection)
<p>© <span data-year></span> Chase Dumphord — <span class="footer-mono">noc.chasedumphord.com</span></p> * JavaScript (Frontend Dashboard UI)
<a href="#top" class="back-to-top">↑ back to top</a> * HTML / CSS (UI Design)
</div> * Bash (System Automation)
</footer> * Git / GitHub (Version Control)
<!-- Shared script from main portfolio --> # 📈 Roadmap
<script src="https://chasedumphord.com/script.js"></script>
* [x] Grafana + Prometheus deployed
<!-- NOC page extras — layer filter tabs + uptime pills --> * [x] Real service monitoring (Blackbox)
<script> * [x] Live NOC dashboard (v1) — 28 systems monitored
// ── Layer filter tabs ────────────────────────────────────────── * [x] Automated Python pipeline — cron pushing data every 5 minutes
// Populated after NOC data loads. Filters the system grid by layer. * [ ] Response time dashboards
let allSystems = []; * [ ] Alerting system (Prometheus alerts)
* [ ] Full NOC dashboard layout (v2)
const originalLoad = window.loadNocStatus; * [ ] Mobile APRS iGate deployment
document.addEventListener("DOMContentLoaded", () => { # 👤 Connect With Me
// Hook into data after the shared script loads it
const observer = new MutationObserver(() => { [LinkedIn](https://www.linkedin.com/in/toochase-dumphord/)
const cards = document.querySelectorAll(".noc-system-card");
if (cards.length > 0) { [GitHub](https://github.com/ced4568)
buildLayerTabs();
buildUptimePills(); ## ⚡ Final Note
observer.disconnect();
} This is not a static portfolio — it is a live representation of real infrastructure, monitoring, and edge systems working together.
});
const grid = document.getElementById("noc-system-grid");
if (grid) observer.observe(grid, { childList: true });
});
function buildLayerTabs() {
const cards = document.querySelectorAll(".noc-system-card");
const layers = new Set(["all"]);
cards.forEach(card => {
const layerEl = card.querySelector(".noc-system-top span:last-child");
if (layerEl) layers.add(layerEl.textContent.trim());
});
const tabContainer = document.getElementById("layer-tabs");
tabContainer.innerHTML = "";
layers.forEach(layer => {
const btn = document.createElement("button");
btn.className = "layer-tab" + (layer === "all" ? " active" : "");
btn.dataset.layer = layer;
btn.textContent = layer === "all" ? "All Systems" : layer;
btn.addEventListener("click", () => filterByLayer(layer, btn));
tabContainer.appendChild(btn);
});
}
function filterByLayer(layer, activeBtn) {
document.querySelectorAll(".layer-tab").forEach(t => t.classList.remove("active"));
activeBtn.classList.add("active");
document.querySelectorAll(".noc-system-card").forEach(card => {
if (layer === "all") {
card.style.display = "";
return;
}
const layerEl = card.querySelector(".noc-system-top span:last-child");
card.style.display =
layerEl && layerEl.textContent.trim() === layer ? "" : "none";
});
}
function buildUptimePills() {
const bar = document.getElementById("uptime-bar");
if (!bar) return;
const cards = document.querySelectorAll(".noc-system-card");
let online = 0, warning = 0, offline = 0;
cards.forEach(card => {
const dot = card.querySelector(".mini-status");
if (!dot) return;
if (dot.classList.contains("online")) online++;
else if (dot.classList.contains("warning")) warning++;
else if (dot.classList.contains("offline")) offline++;
});
bar.innerHTML = `
<span class="uptime-pill online">● ${online} Online</span>
${warning > 0 ? `<span class="uptime-pill warning">● ${warning} Degraded</span>` : ""}
${offline > 0 ? `<span class="uptime-pill offline">● ${offline} Offline</span>` : ""}
<span class="uptime-pill">${online + warning + offline} Total Systems</span>
`;
}
</script>
</body>
</html>