replit-observability

Featured

Monitor Replit deployments with health checks, uptime tracking, resource usage, and alerting. Use when setting up monitoring for Replit apps, building health dashboards, or configuring alerting for deployment health and performance. Trigger with phrases like "replit monitoring", "replit metrics", "replit observability", "monitor replit", "replit alerts", "replit uptime".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 ```typescript // src/routes/health.ts — comprehensive health check import { Router } from 'express'; import { pool } from '../services/postgres'; const router = Router(); const startTime = Date.now(); router.get('/health', async (req, res) => { const checks: Record<string, any> = { status: 'ok', uptime: process.uptime(), bootTime: ((Date.now() - startTime) / 1000).toFixed(1) + 's ago', timestamp: new Date().toISOString(), repl: process.env.REPL_SLUG, region: process.env.REPLIT_DEPLOYMENT_REGION, env: process.env.NODE_ENV, }; // Database check if (process.env.DATABASE_URL) { const dbStart = Date.now(); try { await pool.query('SELECT 1'); checks.database = { status: 'connected', latencyMs: Date.now() - dbStart, pool: { total: pool.totalCount, idle: pool.idleCount }, }; } catch (err: any) { checks.database = { status: 'disconnected', error: err.message }; checks.status = 'degr...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category