BFCMBlack Friday 2026: 30% OFF all Starter, Pro & Scale plans with code BFCM2026Claim deal →
All 10 Monitoring Templates
Python & DataPython · FastAPI · Celery Beat · Airflow

FastAPI, Celery & Airflow Data Stack.

Combines multi-ASN API checks on FastAPI /health routes with Python @heartbeat('hb_token') decorators across sync and async ETL pipelines.

Option 1: alertondown.yaml (GitHub Action & CLI GitOps Sync)
# alertondown.yaml — FastAPI + Python Data Pipelines
monitors:
  - name: "FastAPI /health Endpoint"
    url: "https://api.data.example.com/health"
    type: api
    intervalSec: 30
  - name: "Celery Beat Hourly Sync"
    url: "https://alertondown.com/hb/replace_me"
    type: heartbeat
    intervalSec: 3600
  - name: "Airflow Nightly Warehouse DAG"
    url: "https://alertondown.com/hb/replace_me_2"
    type: heartbeat
    intervalSec: 86400
Option 2: main.tf (Terraform & OpenTofu Provider)
resource "alertondown_monitor" "fastapi_health" {
  friendly_name         = "FastAPI /health Endpoint"
  target_url            = "https://api.data.example.com/health"
  monitor_type          = "api"
  interval_sec          = 30
  expected_status_codes = "200"
  check_ssl_errors      = true
}
Option 3: Cron / Heartbeat / CLI Instrumentation
from alertondown import heartbeat

@heartbeat("hb_airflow_warehouse")
def run_warehouse_dag():
    extract_and_load_tables()

Production Readiness Checklist

  • Zero external Python dependencies (pure urllib stdlib)
  • Supports both def and async def FastAPI background tasks
  • Automatically records execution durationMs and exception text on failure
  • Correlate ML/data releases with API latency via aod.record_deploy()

More Stack Templates