mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
## Problem Capacity felt like a misleading naming for some users ## Solution renaming to resource monitor, to remove confusion with things like AWS capacity. And also leaves some room for interpretation that resource issues worth reporting are not always related to capacity. It could ust be interest in increase consumption. User expectations based on terminology will never be perfect though. ## Preview links https://supabase.com/docs/guides/observability/automate-with-agents/usage?queryGroups=agent-setup&agent-setup=prompt | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/observability/automate-with-agents/usage?queryGroups=agent-setup&agent-setup=prompt) <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions Provide a clear numbered procedure that the PR reviewer can walk through. 1. For example, `Open the live and preview links side-by-side.` 2. For example, `See the issue is fixed.` ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which references [WORD_LIST](https://github.com/supabase/supabase/blob/master/apps/docs/WORD_LIST.md) and the docs [CONTRIBUTING](https://github.com/supabase/supabase/blob/master/apps/docs/CONTRIBUTING.md) guide <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Renamed “Capacity monitor” to “Resource monitor” across the guide, navigation, and monitoring prompt labels. * Updated the guide to link to the resource-report trigger documentation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
import type { AiPromptId } from './ai-prompts.data'
|
|
|
|
export const monitoringAgents = {
|
|
health: {
|
|
id: 'health',
|
|
name: 'Health monitor',
|
|
promptId: 'monitoring-agent-health' as AiPromptId,
|
|
schedule: {
|
|
cadence: 'once per hour',
|
|
intervalMinutes: 60,
|
|
scheduled: 'Run it once per hour on a schedule.',
|
|
onDemand:
|
|
'Run it on demand after a deployment, or whenever you need a health check outside that interval.',
|
|
},
|
|
},
|
|
security: {
|
|
id: 'security',
|
|
name: 'Security monitor',
|
|
promptId: 'monitoring-agent-security' as AiPromptId,
|
|
schedule: {
|
|
cadence: 'once per day',
|
|
intervalMinutes: 1440,
|
|
scheduled: 'Run it once per day on a schedule.',
|
|
onDemand: 'Run it on demand after you change Auth, RLS, or other access controls.',
|
|
},
|
|
},
|
|
performance: {
|
|
id: 'performance',
|
|
name: 'Performance monitor',
|
|
promptId: 'monitoring-agent-performance' as AiPromptId,
|
|
schedule: {
|
|
cadence: 'once per hour',
|
|
intervalMinutes: 60,
|
|
scheduled: 'Run it once per hour on a schedule.',
|
|
onDemand: 'Run it on demand after a latency regression or a schema change.',
|
|
},
|
|
},
|
|
usage: {
|
|
id: 'usage',
|
|
name: 'Resource monitor',
|
|
promptId: 'monitoring-agent-usage' as AiPromptId,
|
|
schedule: {
|
|
cadence: 'once each morning',
|
|
intervalMinutes: 1440,
|
|
scheduled: 'Run it once per day on a schedule.',
|
|
onDemand: 'Run it on demand after an unexpected traffic change.',
|
|
},
|
|
},
|
|
} as const
|
|
|
|
export type MonitoringAgentId = keyof typeof monitoringAgents
|
|
export type MonitoringAgent = (typeof monitoringAgents)[MonitoringAgentId]
|