Add autoscaling outcomes to Metrics (Refs #140)

This commit is contained in:
2026-10-10 17:51:31 -04:00
parent 0bfda267ec
commit 528ed7f37a
15 changed files with 612 additions and 6 deletions
+11
View File
@@ -11,6 +11,7 @@
import SectionHeader from '$ui/components/primitives/SectionHeader.svelte';
import Card from '$ui/components/primitives/Card.svelte';
import MetricsSummary from '$ui/components/metrics/MetricsSummary.svelte';
import MetricsAutoscaling from '$ui/components/metrics/MetricsAutoscaling.svelte';
import MetricsHeatmap from '$ui/components/metrics/MetricsHeatmap.svelte';
import Tabs from '$ui/components/primitives/Tabs.svelte';
import Button from '$ui/components/primitives/Button.svelte';
@@ -252,6 +253,7 @@
{/if}
<p class="range">{scopeLabel} · {format.period(report.since)} – {format.period(report.now)}</p>
<MetricsSummary {report} />
<MetricsAutoscaling metrics={report.autoscaling} />
{#if captured === 0}
<Card>
<EmptyState
@@ -392,6 +394,15 @@
compare observations with the current policy; historical policy settings are not
recorded.
</p>
<p>
Autoscaling counts retained Provisioning operations whose finish time falls within this
window, including both endpoints. Successful creates and removals include operations
completed with warnings; failed and cancelled operations are counted separately. Pending
operations are excluded. Request-to-ready time measures completed creates from request
through verified readiness, including queue time, and does not establish browser
visibility or successful joins. Game and map scope use the operation’s recorded server
name, preserving map variants and history after server or policy removal.
</p>
<p>
Each periodic observation covers at most {ONLINE_MAX_MS / 1000} seconds. Longer collection
gaps are excluded. Occupancy history defaults to 31 days; saved match retention is configured