Implement uptime monitoring and status page systems for tracking service availability. Use when monitoring application uptime, creating status pages, or implementing health checks.
3f5182cSet up comprehensive uptime monitoring with health checks, status pages, and incident tracking to ensure visibility into service availability.
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)
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 |
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/uptime-monitoring · pinned to the source commit
git clone https://github.com/aj-geddes/useful-ai-prompts.git
cd useful-ai-prompts
git checkout 3f5182cfd739fc113f4af5244a1cf342ad7f7911
mkdir -p ".claude/skills/uptime-monitoring"
cp -r "skills/uptime-monitoring" ".claude/skills/uptime-monitoring"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit 3f5182cfd739. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.