Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Calibrate remaining metrics CI SLO envelopes
rcourtman6af7c1893679
diff --git a/pkg/metrics/store_slo_test.go b/pkg/metrics/store_slo_test.goindex f860e2e48c..41009c4ef0 100644--- a/pkg/metrics/store_slo_test.go+++ b/pkg/metrics/store_slo_test.go@@ -29,12 +29,14 @@ import (// → local SLO 15ms, GH Actions SLO 25ms// - QueryAllBatch(50×4×100): ~57ms p95 observed locally in March 2026; ~123ms p95 on the April 9, 2026 v6 RC dry run// → local SLO 60ms, GH Actions SLO 140ms-// - QueryAllBatch downsampled (50×4×100, 60s): ~31ms → local SLO 55ms, GH Actions SLO 130ms-// - QueryAllBatch chunked (500×4×20): ~84ms p95 observed locally in March 2026; ~216ms p95 on the April 9, 2026 v6 RC dry run-// → local SLO 90ms, GH Actions SLO 240ms-// - rollupTier(50×2×20): ~2.1ms → SLO 15ms+// - QueryAllBatch downsampled (50×4×100, 60s): ~31ms locally; ~143ms p95 on the April 9, 2026 v6 RC dry run+// → local SLO 55ms, GH Actions SLO 160ms+// - QueryAllBatch chunked (500×4×20): ~84ms p95 observed locally in March 2026; ~252ms p95 on the April 9, 2026 v6 RC dry run+// → local SLO 90ms, GH Actions SLO 280ms+// - rollupTier(50×2×20): ~2.1ms locally; ~17.9ms p95 on the April 9, 2026 v6 RC dry run+// → local SLO 15ms, GH Actions SLO 25ms// - rollupTier fleet-scale (500×4×20): ~138ms p95 observed locally in March 2026; ~214-217ms p95 on March 26, 2026 GitHub release rehearsals;-// ~241ms p95 on the April 9, 2026 v6 RC dry run → local SLO 140ms, GH Actions SLO 260ms+// ~271ms p95 on the April 9, 2026 v6 RC dry run → local SLO 140ms, GH Actions SLO 300ms// - Query under write contention: ~400µs → SLO 5ms// - 500-node concurrent dashboard load: ~7.9ms p95 observed locally in March 2026; ~23-24ms p95 on March 26, 2026 GitHub release rehearsals// → local SLO 15ms, GH Actions SLO 30ms@@ -72,13 +74,13 @@ const (// benchmark latency so it remains strict without flaking under normal local// variance; GitHub-hosted runners need a wider budget.SLOQueryAllBatchDownsampledP95 = 55 * time.Millisecond- SLOQueryAllBatchDownsampledGitHubActionsP95 = 130 * time.Millisecond+ SLOQueryAllBatchDownsampledGitHubActionsP95 = 160 * time.Millisecond// SLOQueryAllBatchChunkedP95 is the p95 target for QueryAllBatch at// 500-resource scale, where the implementation must split requests into// multiple SQL chunks to stay within SQLite parameter limits.SLOQueryAllBatchChunkedP95 = 90 * time.Millisecond- SLOQueryAllBatchChunkedGitHubActionsP95 = 240 * time.Millisecond+ SLOQueryAllBatchChunkedGitHubActionsP95 = 280 * time.Millisecond// SLOQueryManyResourcesP95 is the p95 target for Query with 100 resources// in the table — validates that index isolation prevents full table scans.@@ -87,13 +89,14 @@ const (// SLORollupTierBatchedP95 is the p95 target for the production batched// rollupTier path (50 resources × 2 metrics × 20 raw points), which must// stay fast enough to prevent periodic aggregation from becoming a backlog.- SLORollupTierBatchedP95 = 15 * time.Millisecond+ SLORollupTierBatchedP95 = 15 * time.Millisecond+ SLORollupTierBatchedGitHubActionsP95 = 25 * time.Millisecond// SLORollupTierBatchedFleetP95 is the p95 target for the production// batched rollupTier path at 500-resource scale (500 nodes × 4 metrics × 20// raw points). This guards the real fleet-scale aggregation workload.SLORollupTierBatchedFleetP95 = 140 * time.Millisecond- SLORollupTierBatchedFleetGitHubActionsP95 = 260 * time.Millisecond+ SLORollupTierBatchedFleetGitHubActionsP95 = 300 * time.Millisecond// SLOConcurrentReadWriteP95 is the p95 target for single-resource Query// while a background writer continuously appends batches on the same SQLite@@ -661,12 +664,13 @@ func TestSLO_RollupTierBatched(t *testing.T) {store.rollupTier(TierRaw, TierMinute, time.Minute, 0)})+ target := effectiveSLOTarget(SLORollupTierBatchedP95, SLORollupTierBatchedGitHubActionsP95)p95 := pct(latencies, 0.95)t.Logf("rollupTier(50x2x20) p50=%v p95=%v p99=%v SLO=%v",- pct(latencies, 0.50), p95, pct(latencies, 0.99), SLORollupTierBatchedP95)+ pct(latencies, 0.50), p95, pct(latencies, 0.99), target)- if p95 > SLORollupTierBatchedP95 {- t.Errorf("SLO VIOLATION: p95=%v exceeds target %v", p95, SLORollupTierBatchedP95)+ if p95 > target {+ t.Errorf("SLO VIOLATION: p95=%v exceeds target %v", p95, target)}}