Skip to content

arghideutis/datacenter-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

CLI Dashboard

A real-time monitoring dashboard for your datacenter, available both as a terminal UI and a web page.

Panels

Panel Source Details
☸ Kubernetes Nodes kubernetes API Node name, Ready/NotReady status, roles, version, CPU & memory (allocatable/capacity)
🖥 Servers Health SSH CPU, load average, memory, disk, uptime — collected from remote Linux servers via SSH
🩺 Service Health HTTP Calls configured endpoints, shows healthy/down status, HTTP code, and latency

Setup

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Configuration

Edit config.yaml to configure:

  • refresh_interval — how often data is refreshed (seconds)
  • kubernetes — cluster connection settings (kubeconfig path, context)
  • servers — list of remote Linux servers to monitor via SSH
  • services — list of HTTP endpoints to health-check
  • web — host and port for the web dashboard

Servers

Each server entry needs SSH access (key-based auth via your SSH agent or a key file):

servers:
  - name: "web-server-1"
    host: "192.168.1.10"
    port: 22
    user: "root"
    key_file: ""  # uses default SSH agent / ~/.ssh/id_rsa

Services

services:
  - name: "My API"
    url: "http://localhost:8080/health"
    timeout: 5
    method: "GET"
    expected_status: 200

Usage

Terminal dashboard

python dashboard.py

Renders a live-updating Rich UI in the terminal. Press Ctrl+C to stop.

Web dashboard

python web.py

Opens a dark-themed web dashboard at http://localhost:8050 (configurable in config.yaml). The page auto-refreshes via the JSON API.

API

Endpoint Description
GET / HTML dashboard
GET /api/data JSON with all dashboard data

Requirements

  • Python 3.10+
  • SSH access to remote servers (key-based)
  • kubectl configured (for Kubernetes panel)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors