mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## Problem Dupe titles in docs. ## Solution Adds unique titles where appropriate + high confidence. ## Preview links | Before | After | |---|---| | [Database Migrations \| Supabase Docs](https://supabase.com/docs/guides/deployment/database-migrations) | [Deploy Database Migrations \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/deployment/database-migrations) | | [Database Migrations \| Supabase Docs](https://supabase.com/docs/guides/local-development/database-migrations) | [Local Database Migrations \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/local-development/database-migrations) | | [Limits \| Supabase Docs](https://supabase.com/docs/guides/storage/uploads/file-limits) | [Storage Upload Limits \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/storage/uploads/file-limits) | | [Limits \| Supabase Docs](https://supabase.com/docs/guides/functions/limits) | [Edge Functions Limits \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/functions/limits) | | [Error Codes \| Supabase Docs](https://supabase.com/docs/guides/storage/debugging/error-codes) | [Storage Error Codes \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/storage/debugging/error-codes) | | [Views \| Supabase Docs](https://supabase.com/docs/guides/database/views) | [Database Views \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/database/views) | | [Self-Hosting \| Supabase Docs](https://supabase.com/docs/reference/self-hosting-auth/introduction) | [Self-Hosting Auth \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/reference/self-hosting-auth/introduction) | | [Supabase Docs](https://supabase.com/docs/reference) | [Supabase API references ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/reference) | --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
44 lines
1.9 KiB
Plaintext
44 lines
1.9 KiB
Plaintext
---
|
|
id: 'automate-with-agents-usage'
|
|
title: 'Automate with agents: usage'
|
|
subtitle: 'A read-only agent that tracks resource and request growth and estimates when a confirmed limit could be reached.'
|
|
description: 'Daily checks for resource growth and approaching limits'
|
|
---
|
|
|
|
```mermaid
|
|
flowchart TD
|
|
Schedule([Once each morning]) --> Inspect[execute_sql and query_logs]
|
|
Inspect --> Signals["Resource measurements and request growth"]
|
|
Signals --> Review{Anything new to report?}
|
|
Review -->|Yes| Report[Finding and next step]
|
|
Review -->|No| Silent[Stay silent]
|
|
Inspect -->|Missing data or access| Gap[Report new or changed gaps]
|
|
```
|
|
|
|
## What it watches
|
|
|
|
- Database and table sizes, including indexes
|
|
- Current connection counts by role and state
|
|
- API request growth across the last two complete UTC days
|
|
- Resource growth toward a confirmed limit, when enough history is available
|
|
|
|
It uses read-only `execute_sql` and `query_logs` on project-scoped [Supabase MCP](/docs/guides/ai-tools/mcp). Request counts do not establish billing totals.
|
|
|
|
## When it watches
|
|
|
|
<AgentWatchSchedule id="usage" />
|
|
|
|
## What it will output
|
|
|
|
This prompt reports new or changed request-growth signals and resource-limit risks. When saved measurements support a forecast within 14 days, it includes the estimated date, calculation, and scaling guide. If history or a matching limit is missing, it explains what it needs instead of inventing a date. See [what triggers a resource report](/docs/guides/observability/detecting#usage).
|
|
|
|
If a check cannot run, the agent tells you what is missing. Clear checks and unchanged findings stay quiet.
|
|
|
|
<$Partial path="monitoring_agent_output.mdx" />
|
|
|
|
## Set up the agent
|
|
|
|
Allow the agent to read the documentation linked in its prompt. Configure your harness to save measurements and alert state, then reload them on each run. Forecasts need at least seven daily measurements and a confirmed limit for the same resource and units.
|
|
|
|
<AgentSetup id="usage" />
|