feat(monitoring): add backend protocol metrics to network stats and ops dashboard

This commit is contained in:
2026-03-23 07:17:33 +00:00
parent 474cc328dd
commit 2f8c04edc4
12 changed files with 282 additions and 46 deletions

View File

@@ -53,6 +53,7 @@ export interface INetworkState {
throughputHistory: Array<{ timestamp: number; in: number; out: number }>;
requestsPerSecond: number;
requestsTotal: number;
backends: interfaces.data.IBackendInfo[];
lastUpdated: number;
isLoading: boolean;
error: string | null;
@@ -148,6 +149,7 @@ export const networkStatePart = await appState.getStatePart<INetworkState>(
throughputHistory: [],
requestsPerSecond: 0,
requestsTotal: 0,
backends: [],
lastUpdated: 0,
isLoading: false,
error: null,
@@ -503,6 +505,7 @@ export const fetchNetworkStatsAction = networkStatePart.createAction(async (stat
throughputHistory: networkStatsResponse.throughputHistory || [],
requestsPerSecond: networkStatsResponse.requestsPerSecond || 0,
requestsTotal: networkStatsResponse.requestsTotal || 0,
backends: networkStatsResponse.backends || [],
lastUpdated: Date.now(),
isLoading: false,
error: null,