Extend overview metrics with infrastructure data

cgen-2aab546e97bd466b84280266f7491f8c
This commit is contained in:
Builder.io 2025-10-14 06:41:19 +00:00
parent 5bb38b9e38
commit 3d8181f963

View file

@ -446,6 +446,35 @@ export default function Admin() {
icon: Activity,
tone: "red" as const,
},
{
title: "Average latency",
value:
infrastructureMetrics.averageResponseTime !== null
? `${infrastructureMetrics.averageResponseTime} ms`
: "—",
description:
"Mean response time across monitored infrastructure services.",
trend:
infrastructureMetrics.degradedServices > 0
? `${infrastructureMetrics.degradedServices} service${infrastructureMetrics.degradedServices === 1 ? "" : "s"} above SLA target`
: "All services meeting SLA",
icon: Zap,
tone: "purple" as const,
},
{
title: "Reliability coverage",
value:
infrastructureMetrics.totalServices > 0
? `${infrastructureMetrics.healthyServices}/${infrastructureMetrics.totalServices} healthy`
: "—",
description: "Operational services within the AeThex platform stack.",
trend:
infrastructureMetrics.averageUptime !== null
? `Avg uptime ${infrastructureMetrics.averageUptime.toFixed(2)}%`
: "Awaiting uptime telemetry",
icon: Shield,
tone: "green" as const,
},
{
title: "Featured studios",
value: featuredStudios ? featuredStudios.toString() : "0",
@ -492,6 +521,7 @@ export default function Admin() {
totalMembers,
blogReach,
blogHighlights,
infrastructureMetrics,
],
);