mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
feat(reports): add swap usage chart to database report (#45746)
This commit is contained in:
1 parent
bbebbe3109
commit
c29ea9a0fa
1 file changed
+27
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user