agent metrics session limit bump to 500

This commit is contained in:
Oliver Kieselbach
2026-04-16 11:31:56 +02:00
parent 9fd2cba424
commit 0fe7748684
3 changed files with 6 additions and 5 deletions
@@ -1 +1 @@
996
1006
@@ -74,8 +74,8 @@ namespace AutopilotMonitor.Functions.Services
private async Task<PlatformAgentMetricsResponse> ComputePlatformMetricsInternalAsync()
{
// 1. Fetch the 100 most recent sessions across all tenants
var page = await _sessionRepo.GetAllSessionsAsync(maxResults: 100);
// 1. Fetch the 500 most recent sessions across all tenants
var page = await _sessionRepo.GetAllSessionsAsync(maxResults: 500);
var allSessions = page.Sessions;
if (allSessions.Count == 0)
@@ -136,7 +136,7 @@ export function SectionAgentMetrics() {
const [loading, setLoading] = useState(true);
const [sessionMetrics, setSessionMetrics] = useState<SessionAgentMetrics[]>([]);
const [sampleSize, setSampleSize] = useState(20);
const [sampleSize, setSampleSize] = useState(100);
const [error, setError] = useState<string | null>(null);
const [versionFilter, setVersionFilter] = useState<string>('all');
const [cacheInfo, setCacheInfo] = useState<{ fromCache: boolean; computeDurationMs: number; computedAt: string } | null>(null);
@@ -313,10 +313,11 @@ export function SectionAgentMetrics() {
onChange={(e) => setSampleSize(Number(e.target.value))}
className="text-sm border border-gray-300 rounded-md px-2 py-1"
>
<option value={10}>10</option>
<option value={20}>20</option>
<option value={50}>50</option>
<option value={100}>100</option>
<option value={200}>200</option>
<option value={500}>500</option>
</select>
{availableVersions.length > 1 && (
<>