Uptime monitoring

From aj-geddes/useful-ai-prompts · View interactive version

Uptime monitoring is an AI agent skill from the GitHub repository aj-geddes/useful-ai-prompts. Implement uptime monitoring and status page systems for tracking service availability. Use when monitoring application uptime, creating status pages, or implementing health checks.

How to use this skill

Skill file

Uptime Monitoring

Table of Contents

Overview

Set up comprehensive uptime monitoring with health checks, status pages, and incident tracking to ensure visibility into service availability.

When to Use

Quick Start

Minimal working example:

// Node.js health check
const express = require("express");
const app = express();

app.get("/health", (req, res) => {
  res.json({
    status: "ok",
    timestamp: new Date().toISOString(),
    uptime: process.uptime(),
  });
});

app.get("/health/deep", async (req, res) => {
  const health = {
    status: "ok",
    checks: {
      database: "unknown",
      cache: "unknown",
      externalApi: "unknown",
    },
  };

  try {
    const dbResult = await db.query("SELECT 1");
    health.checks.database = dbResult ? "ok" : "error";
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

| Guide | Contents |

|---|---|

| Health Check Endpoints | Health Check Endpoints |

| Python Health Checks | Python Health Checks |

| Uptime Monitor with Heartbeat | Uptime Monitor with Heartbeat |

| Public Status Page API | Public Status Page API |

| Kubernetes Health Probes | Kubernetes Health Probes |

Best Practices

✅ DO

❌ DON'T

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.