diff --git a/ui/src/pages/AgentInstance/AgentInstance.module.css b/ui/src/pages/AgentInstance/AgentInstance.module.css index 92016bc8..d98a791b 100644 --- a/ui/src/pages/AgentInstance/AgentInstance.module.css +++ b/ui/src/pages/AgentInstance/AgentInstance.module.css @@ -145,3 +145,31 @@ color: var(--text-primary); margin-bottom: 12px; } + +.chartMeta { + font-size: 11px; + font-weight: 500; + color: var(--text-muted); + font-family: var(--font-mono); +} + +.bottomSection { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 14px; + margin-bottom: 20px; +} + +.eventCount { + font-size: 11px; + font-weight: 500; + color: var(--text-muted); + font-family: var(--font-mono); +} + +.emptyEvents { + padding: 20px; + text-align: center; + font-size: 12px; + color: var(--text-muted); +} diff --git a/ui/src/pages/AgentInstance/AgentInstance.tsx b/ui/src/pages/AgentInstance/AgentInstance.tsx index 83df9f58..3578269a 100644 --- a/ui/src/pages/AgentInstance/AgentInstance.tsx +++ b/ui/src/pages/AgentInstance/AgentInstance.tsx @@ -200,54 +200,76 @@ export default function AgentInstance() { )} -
Performance
-
CPU Usage
+
+
CPU Usage
+
{cpuPct != null ? `${(cpuPct * 100).toFixed(0)}% current` : ''}
+
{cpuSeries ? : }
-
Memory Heap
+
+
Memory (Heap)
+
{heapUsed != null && heapMax != null ? `${(heapUsed / (1024 * 1024)).toFixed(0)} MB / ${(heapMax / (1024 * 1024)).toFixed(0)} MB` : ''}
+
{heapSeries ? : }
-
Throughput
+
+
Throughput
+
{agent?.tps != null ? `${agent.tps.toFixed(1)} msg/s` : ''}
+
{throughputSeries - ? + ? : }
-
Error Rate
+
+
Error Rate
+
{agent?.errorRate != null ? `${(agent.errorRate * 100).toFixed(1)}%` : ''}
+
{errorSeries - ? + ? : }
-
Thread Count
+
+
Thread Count
+ {threadSeries &&
{threadSeries[0].data[threadSeries[0].data.length - 1]?.y.toFixed(0)} active
} +
{threadSeries - ? + ? : }
-
GC Pauses
+
+
GC Pauses
+
{gcSeries ? : }
- {feedEvents.length > 0 && ( -
-
Events
- -
- )} +
+ + +
+
+ Timeline + {feedEvents.length} events +
+ {feedEvents.length > 0 + ? + :
No events in the selected time range.
} +
+
- ); }