BAFOSJoin Waitlist
BAFOS Docs

Server Health Monitoring Guide

BAFOS universal health monitoring probes your production servers, microservices, and backend APIs. It tracks response times, evaluates uptime, and enforces two-tier outage escalations.

What It Does

  • Continuous Uptime Probing: Pings your health endpoints at configured intervals (e.g. 60 seconds).
  • Two-Tier Escalation: 1st probe failure triggers a Warning; 3 consecutive failures immediately trigger a Red Flag Outage.
  • SSRF Protection: Hardened probers reject private RFC 1918 subnets, cloud metadata IP addresses (169.254.169.254), and loopback interfaces.

The BAFOS Health Spec (Recommended)

While BAFOS can probe any URL that returns an HTTP 200 OK status, implementing the standard BAFOS Health Spec JSON response provides detailed system health data:

// GET /api/health
{
  "status": "healthy", // "healthy" | "degraded" | "unhealthy"
  "version": "1.0.4",
  "uptimeSeconds": 86400,
  "checks": {
    "database": "ok",
    "cache": "ok",
    "queue": "ok"
  }
}

Step-by-Step: Adding a Health Check Endpoint

1

Deploy Health Route

Ensure your production server exposes an unauthenticated or token-protected health endpoint (e.g., https://api.yourdomain.com/api/health).

2

Configure Endpoint in BAFOS

In BAFOS, open Project Settings → Connected Stack → Health Endpoints. Click Add Endpoint.

  • Endpoint Name: e.g. Production API
  • URL: https://api.yourdomain.com/api/health
  • Secret Header (Optional): If your endpoint requires a secret token (e.g. Bearer <secret> or x-health-token).
3

Verify & Activate Probe

Click Test Probe. BAFOS sends an immediate probe, verifies the 200 response and latency, and activates continuous monitoring.

Maintained Changelog

DateTypeDescription
2026-11-17AddedDedicated /tools/health hub with latency graphs, outage logs, and response status history.
2026-11-16AddedTwo-tier outage rule escalations (1 fail = warning, 3 fails = outage red flag).
2026-11-13InitialSSRF-protected prober engine supporting standard HTTP and BAFOS Health Spec JSON payloads.