mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
The "Hire an agent" and "monitor" wording oversold the feature: it is just a prompt you give an agent to check health, security, performance, or resources, optionally on a schedule. Rename the group to "Agent prompts", drop "monitor" from the four child pages (Health, Security, Performance, Resources), and use plainer framing across the landing page and observability hub. URL slugs are unchanged. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Renamed the Observability section to “Agent prompts” and updated its page titles and descriptions to describe project checks. * Clarified that prompts read project data without changing it, and that findings can be sent through existing harness connections. * Updated setup guidance to refer to running prompts and using “checks” in task names. * Renamed the Health, Security, Performance, and Resources entries. The related links, schedules, and reporting details remain unchanged. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
43 lines
1.9 KiB
Plaintext
43 lines
1.9 KiB
Plaintext
---
|
|
id: 'automate-with-agents-performance'
|
|
title: 'Performance'
|
|
subtitle: 'A read-only agent that inspects query performance, blocking sessions, and Performance Advisor findings once per hour.'
|
|
description: 'Hourly checks for query regressions, blocking sessions, and performance findings'
|
|
---
|
|
|
|
```mermaid
|
|
flowchart TD
|
|
Schedule([Once per hour]) --> Inspect[get_advisors and execute_sql]
|
|
Inspect --> Signals["Query regressions, blockers, advisor findings"]
|
|
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
|
|
|
|
- Long-running sessions and the PIDs blocking other sessions
|
|
- Query execution-time regressions across saved hourly measurements
|
|
- Performance Advisor findings at warning and error level
|
|
|
|
It uses `get_advisors` and read-only `execute_sql` on project-scoped [Supabase MCP](/docs/guides/ai-tools/mcp). It does not create indexes, rewrite queries, or cancel sessions.
|
|
|
|
## When it watches
|
|
|
|
<AgentWatchSchedule id="performance" />
|
|
|
|
## What it will output
|
|
|
|
This prompt reports new or changed findings with the affected query, session, or object, plus an investigation and verification step. It does not infer a regression without comparable measurements or recommend cancellation based only on query age. See [what triggers a performance report](/docs/guides/observability/detecting#performance).
|
|
|
|
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. Query comparisons need three hourly snapshots; the first runs can still report current blockers and advisor findings.
|
|
|
|
<AgentSetup id="performance" />
|