feat(reports): add swap usage chart to database report (#45746)

This commit is contained in:
Jordi Enric authored and GitHub committed 2026-05-11 15:22:42 +02:00
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',