Request icon
Script icon
If icon
SlackIncomingWebhook icon
Log icon
Schedule icon

Supabase Database Health and Storage Quota Sentinel

Monitor Supabase database health, verify project responsiveness, and trigger automated Slack alerts on degradation with Kestra.

Categories
Cloud

Automated health monitoring, connection verification, and proactive incident response for cloud-hosted Supabase PostgreSQL databases.

How it works

  1. An hourly schedule initiates the workflow to inspect database status.
  2. The HTTP request task queries the Supabase Management API using project reference credentials.
  3. An inline Python task parses health telemetry and evaluates operational conditions.
  4. A conditional flow gate checks if health degradation is detected.
  5. If an anomaly is observed, an incident alert is dispatched to a designated Slack channel.
  6. An execution audit log records the health status for compliance tracking.

What you get

  • Automated, continuous health audits without manual dashboard inspections.
  • Proactive Slack notifications before end-user query latencies degrade.
  • Centralized execution history tracking across multi-environment deployments.

Who it's for

  • Platform Engineers and Site Reliability Engineers managing Supabase instances.
  • Full-stack teams relying on production PostgreSQL databases.
  • DevOps engineers centralizing multi-cloud database observability.

Why orchestrate this with Kestra

  • Declarative YAML definition version-controlled alongside application code.
  • Built-in credential and secret masking for API tokens and webhook URLs.
  • Automatic retries on transient network timeouts without writing retry loops.

Prerequisites

  • A Supabase project with API management access.
  • A Slack Incoming Webhook URL for alerting.

Secrets

  • SUPABASE_PROJECT_REF: The alphanumeric reference identifier for your Supabase project.
  • SUPABASE_ACCESS_TOKEN: Management API personal access token with read permissions.
  • SLACK_WEBHOOK_URL: Webhook endpoint URL for operational alert notifications.

Quick start

  1. Configure SUPABASE_PROJECT_REF, SUPABASE_ACCESS_TOKEN, and SLACK_WEBHOOK_URL in your namespace secrets.
  2. Save and execute the flow in your Kestra instance to verify the connection.
  3. Enable the hourly schedule trigger for continuous automated supervision.

How to extend

  • Add automated PagerDuty or Opsgenie alerts for critical outage classifications.
  • Incorporate automated point-in-time database snapshots when disk space is constrained.
  • Forward historical telemetry into Prometheus or Grafana Loki.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.