[增添]添加了系统设备数据显示stats widget

This commit is contained in:
makotocc0107
2024-08-29 10:47:39 +08:00
committed by Coding
parent a6dd4ad277
commit 9862f9eb53
3 changed files with 90 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ use Filament\Widgets\ChartWidget;
class PrometheusMemory extends ChartWidget
{
protected static ?int $sort = 3;
protected static ?int $sort = 4;
protected static ?string $heading = '内存占用率';
@@ -44,7 +44,7 @@ class PrometheusMemory extends ChartWidget
'borderColor' => '#4CAF50',
'backgroundColor' => 'rgba(76, 175, 80, 0.2)',
'fill' => true,
'tension' => 0.4,
'tension' => 0.2,
],
],
];