The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat(reports): add swap usage chart to database report (#45746)
Jordi Enricc29ea9a0fa08
diff --git a/apps/studio/data/reports/database-charts.ts b/apps/studio/data/reports/database-charts.tsindex bfc75190293..94e0527e20c 100644--- a/apps/studio/data/reports/database-charts.ts+++ b/apps/studio/data/reports/database-charts.ts@@ -74,6 +74,33 @@ export const getReportAttributesV2: (},],},+ {+ id: 'swap-usage',+ label: 'Swap usage',+ docsUrl: `${DOCS_URL}/guides/telemetry/reports#memory-usage`,+ hide: false,+ showTooltip: true,+ showLegend: false,+ hideChartType: false,+ defaultChartStyle: 'bar',+ showMaxValue: false,+ showGrid: true,+ syncId: 'database-reports',+ valuePrecision: 2,+ YAxisProps: {+ width: 75,+ tickFormatter: (value: any) => formatBytes(value, 2),+ },+ attributes: [+ {+ attribute: 'swap_usage',+ provider: 'infra-monitoring',+ label: 'Swap',+ tooltip:+ 'Swap space in use by the operating system. Sustained swap usage indicates memory pressure and may degrade database performance',+ },+ ],+ },{id: 'cpu-usage',label: 'CPU usage',