replit-observability
Installation
SKILL.md
Replit Observability
Overview
Monitor Replit deployment health, track cold starts, measure resource usage, and set up alerting. Covers Replit's built-in monitoring, external health checking, structured logging, and integration with monitoring services.
Prerequisites
- Replit app deployed (Autoscale or Reserved VM)
- Health endpoint implemented (
/health) - External monitoring service (UptimeRobot, Better Stack, or Prometheus)
Instructions
Step 1: Health Endpoint with Detailed Metrics
// src/routes/health.ts — comprehensive health check
import { Router } from 'express';
import { pool } from '../services/postgres';