$120 tested Claude codes · real before/after data · Full tier $15 one-timebuy --sheet=15 →
$Free 40-page Claude guide — setup, 120 prompt codes, MCP servers, AI agents. download --free →
clskills.sh — terminal v2.4 — 2,347 skills indexed● online
[CL]Skills_
Monitoring & Loggingintermediate

Health Dashboard

Share

Create health monitoring dashboard

Works with OpenClaude

You are a full-stack monitoring engineer. The user wants to build a real-time health monitoring dashboard that displays system metrics, service status, and alerts.

What to check first

  • Verify Node.js 16+ is installed: node --version
  • Check if you have a metrics collection service (Prometheus, StatsD, or custom endpoint)
  • Confirm frontend framework preference (React recommended for real-time updates)

Steps

  1. Set up Express backend with /api/health endpoint that aggregates service metrics
  2. Install real-time socket communication: npm install socket.io express for bi-directional updates
  3. Create metric collection functions that query system stats using os module or external APIs
  4. Build React frontend component with npm install react recharts for chart rendering
  5. Implement WebSocket listeners on client to receive metric updates every 5-10 seconds
  6. Add color-coded status indicators (green/yellow/red) based on threshold logic
  7. Create alert system that triggers notifications when metrics exceed defined limits
  8. Deploy with environment variables for metric thresholds and service URLs

Code

// server.js - Express + Socket.io backend
const express = require('express');
const http = require('http');
const socketIo = require('socket.io');
const os = require('os');

const app = express();
const server = http.createServer(app);
const io = socketIo(server, { cors: { origin: '*' } });

// Metric collection function
function gatherMetrics() {
  const cpuUsage = os.loadavg()[0] * 100 / os.cpus().length;
  const totalMem = os.totalmem();
  const freeMem = os.freemem();
  const memUsage = ((totalMem - freeMem) / totalMem) * 100;
  
  return {
    timestamp: new Date().toISOString(),
    cpu: parseFloat(cpuUsage.toFixed(2)),
    memory: parseFloat(memUsage.toFixed(2)),
    uptime: os.uptime(),
    services: {
      api: { status: 'healthy', latency: 45 },
      database: { status: 'healthy', latency: 12 },
      cache: { status: 'healthy', latency: 8 }
    }
  };
}

// Emit metrics to connected clients every 5 seconds
setInterval(() => {
  const metrics = gatherMetrics();
  io.emit('metrics', metrics);
}, 5000);

// REST endpoint for initial load
app.get('/api/health', (req, res) => {
  res.json(gatherMetrics());
});

app.use(express.static('public'));

server.listen(3000, () => {
  console.log('Health dashboard server running on port 3000');
});
// Dashboard.jsx - React frontend component
import React, { useState

Note: this example was truncated in the source. See the GitHub repo for the latest full version.

Common Pitfalls

  • Treating this skill as a one-shot solution — most workflows need iteration and verification
  • Skipping the verification steps — you don't know it worked until you measure
  • Applying this skill without understanding the underlying problem — read the related docs first

When NOT to Use This Skill

  • When a simpler manual approach would take less than 10 minutes
  • On critical production systems without testing in staging first
  • When you don't have permission or authorization to make these changes

How to Verify It Worked

  • Run the verification steps documented above
  • Compare the output against your expected baseline
  • Check logs for any warnings or errors — silent failures are the worst kind

Production Considerations

  • Test in staging before deploying to production
  • Have a rollback plan — every change should be reversible
  • Monitor the affected systems for at least 24 hours after the change

Quick Info

Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
monitoringdashboardhealth

Install command:

curl -o ~/.claude/skills/health-dashboard.md https://claude-skills-hub.vercel.app/skills/monitoring/health-dashboard.md

Related Monitoring & Logging Skills

Other Claude Code skills in the same category — free to download.

Want a Monitoring & Logging skill personalized to YOUR project?

This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.