v0.41.3
This commit is contained in:
1 parent
8d15429560
commit
dd9ecc48f1
21 files changed
+828
-141
No files matched your search
@@ -67,7 +67,7 @@ window.rustProxyDashboardLayout = (() => {
|
||||
dashboard_widgets: normalizeDashboardWidgets(visible),
|
||||
dashboard_hidden_widgets: ADMIN_DASHBOARD_WIDGETS.filter(id => !visible.includes(id)),
|
||||
dashboard_widget_sizes: sizes,
|
||||
dashboard_widget_heights: null,
|
||||
dashboard_widget_heights: normalizeDashboardWidgetHeights(preset.dashboard_widget_heights),
|
||||
dashboard_widget_positions: null,
|
||||
dashboard_auto_fit: true,
|
||||
dashboard_density: preset.dashboard_density,
|
||||
|
||||
@@ -567,6 +567,442 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "daily_compact",
|
||||
"form": "desktop",
|
||||
"name_key": "dashboardBuiltinDailyCompact",
|
||||
"description_key": "dashboardBuiltinDailyCompactHelp",
|
||||
"dashboard_density": "compact",
|
||||
"overview_samples": 600,
|
||||
"widgets": [
|
||||
[
|
||||
"requests",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_total_rps",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_response_latency",
|
||||
2
|
||||
],
|
||||
[
|
||||
"backend_health",
|
||||
2
|
||||
],
|
||||
[
|
||||
"errors",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_cert_expiry",
|
||||
2
|
||||
],
|
||||
[
|
||||
"traffic_chart",
|
||||
6
|
||||
],
|
||||
[
|
||||
"memory_breakdown",
|
||||
6
|
||||
],
|
||||
[
|
||||
"memory",
|
||||
2
|
||||
],
|
||||
[
|
||||
"websocket",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_backend_active",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_cache_memory",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_cold_storage",
|
||||
2
|
||||
],
|
||||
[
|
||||
"backend_latency",
|
||||
2
|
||||
],
|
||||
[
|
||||
"cache_outcomes",
|
||||
4
|
||||
],
|
||||
[
|
||||
"system_chart",
|
||||
4
|
||||
],
|
||||
[
|
||||
"connection_chart",
|
||||
4
|
||||
],
|
||||
[
|
||||
"wide_cpu",
|
||||
4
|
||||
],
|
||||
[
|
||||
"cache_diagnostics",
|
||||
4
|
||||
],
|
||||
[
|
||||
"network_diagnostics",
|
||||
4
|
||||
],
|
||||
[
|
||||
"process_diagnostics",
|
||||
12
|
||||
],
|
||||
[
|
||||
"backend_table",
|
||||
12
|
||||
]
|
||||
],
|
||||
"dashboard_widget_heights": {
|
||||
"traffic_chart": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "latency_triage",
|
||||
"form": "desktop",
|
||||
"name_key": "dashboardBuiltinLatencyTriage",
|
||||
"description_key": "dashboardBuiltinLatencyTriageHelp",
|
||||
"dashboard_density": "compact",
|
||||
"overview_samples": 600,
|
||||
"widgets": [
|
||||
[
|
||||
"extra_total_rps",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_response_latency",
|
||||
2
|
||||
],
|
||||
[
|
||||
"backend_health",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_request_error_rate",
|
||||
2
|
||||
],
|
||||
[
|
||||
"backend_queue",
|
||||
2
|
||||
],
|
||||
[
|
||||
"backend_capacity",
|
||||
2
|
||||
],
|
||||
[
|
||||
"traffic_chart",
|
||||
6
|
||||
],
|
||||
[
|
||||
"wide_latency",
|
||||
6
|
||||
],
|
||||
[
|
||||
"backend_requests",
|
||||
4
|
||||
],
|
||||
[
|
||||
"backend_latency",
|
||||
4
|
||||
],
|
||||
[
|
||||
"backend_retries",
|
||||
4
|
||||
],
|
||||
[
|
||||
"backend_http5xx",
|
||||
4
|
||||
],
|
||||
[
|
||||
"backend_timeouts",
|
||||
4
|
||||
],
|
||||
[
|
||||
"backend_network",
|
||||
4
|
||||
],
|
||||
[
|
||||
"wide_backend_health",
|
||||
6
|
||||
],
|
||||
[
|
||||
"connection_chart",
|
||||
6
|
||||
],
|
||||
[
|
||||
"backend_table",
|
||||
12
|
||||
]
|
||||
],
|
||||
"dashboard_widget_heights": {
|
||||
"traffic_chart": 7,
|
||||
"wide_latency": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "memory_pressure",
|
||||
"form": "desktop",
|
||||
"name_key": "dashboardBuiltinMemoryPressure",
|
||||
"description_key": "dashboardBuiltinMemoryPressureHelp",
|
||||
"dashboard_density": "compact",
|
||||
"overview_samples": 600,
|
||||
"widgets": [
|
||||
[
|
||||
"memory",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_process_rss",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_process_cpu",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_process_fds",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_open_connections",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_cache_memory",
|
||||
2
|
||||
],
|
||||
[
|
||||
"memory_breakdown",
|
||||
6
|
||||
],
|
||||
[
|
||||
"wide_memory",
|
||||
6
|
||||
],
|
||||
[
|
||||
"extra_cold_storage",
|
||||
4
|
||||
],
|
||||
[
|
||||
"extra_cold_queue_memory",
|
||||
4
|
||||
],
|
||||
[
|
||||
"extra_active_exchanges",
|
||||
4
|
||||
],
|
||||
[
|
||||
"wide_cpu",
|
||||
6
|
||||
],
|
||||
[
|
||||
"system_chart",
|
||||
6
|
||||
],
|
||||
[
|
||||
"cache_diagnostics",
|
||||
4
|
||||
],
|
||||
[
|
||||
"process_diagnostics",
|
||||
4
|
||||
],
|
||||
[
|
||||
"network_diagnostics",
|
||||
4
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "delivery_efficiency",
|
||||
"form": "desktop",
|
||||
"name_key": "dashboardBuiltinDeliveryEfficiency",
|
||||
"description_key": "dashboardBuiltinDeliveryEfficiencyHelp",
|
||||
"dashboard_density": "compact",
|
||||
"overview_samples": 600,
|
||||
"widgets": [
|
||||
[
|
||||
"extra_total_rps",
|
||||
2
|
||||
],
|
||||
[
|
||||
"bandwidth",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_response_latency",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_cache_hit_rate",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_cache_miss_rate",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_backend_active",
|
||||
2
|
||||
],
|
||||
[
|
||||
"traffic_chart",
|
||||
6
|
||||
],
|
||||
[
|
||||
"wide_cache_activity",
|
||||
6
|
||||
],
|
||||
[
|
||||
"cache_outcomes",
|
||||
4
|
||||
],
|
||||
[
|
||||
"backend_requests",
|
||||
4
|
||||
],
|
||||
[
|
||||
"backend_traffic",
|
||||
4
|
||||
],
|
||||
[
|
||||
"wide_compression_activity",
|
||||
6
|
||||
],
|
||||
[
|
||||
"wide_transform_activity",
|
||||
6
|
||||
],
|
||||
[
|
||||
"memory_breakdown",
|
||||
6
|
||||
],
|
||||
[
|
||||
"cache_diagnostics",
|
||||
6
|
||||
],
|
||||
[
|
||||
"wide_cpu",
|
||||
6
|
||||
],
|
||||
[
|
||||
"wide_latency",
|
||||
6
|
||||
],
|
||||
[
|
||||
"backend_table",
|
||||
12
|
||||
]
|
||||
],
|
||||
"dashboard_widget_heights": {
|
||||
"traffic_chart": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "docker_hosts",
|
||||
"form": "desktop",
|
||||
"name_key": "dashboardBuiltinDockerHosts",
|
||||
"description_key": "dashboardBuiltinDockerHostsHelp",
|
||||
"dashboard_density": "compact",
|
||||
"overview_samples": 600,
|
||||
"widgets": [
|
||||
[
|
||||
"extra_total_rps",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_response_latency",
|
||||
2
|
||||
],
|
||||
[
|
||||
"backend_health",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_request_error_rate",
|
||||
2
|
||||
],
|
||||
[
|
||||
"memory",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_cert_expiry",
|
||||
2
|
||||
],
|
||||
[
|
||||
"docker_agents",
|
||||
3
|
||||
],
|
||||
[
|
||||
"docker_apps",
|
||||
3
|
||||
],
|
||||
[
|
||||
"docker_host_load",
|
||||
3
|
||||
],
|
||||
[
|
||||
"docker_containers",
|
||||
3
|
||||
],
|
||||
[
|
||||
"docker_requests",
|
||||
6
|
||||
],
|
||||
[
|
||||
"docker_host_network",
|
||||
6
|
||||
],
|
||||
[
|
||||
"docker_agents_2",
|
||||
3
|
||||
],
|
||||
[
|
||||
"docker_apps_2",
|
||||
3
|
||||
],
|
||||
[
|
||||
"docker_host_load_2",
|
||||
3
|
||||
],
|
||||
[
|
||||
"docker_containers_2",
|
||||
3
|
||||
],
|
||||
[
|
||||
"docker_requests_2",
|
||||
6
|
||||
],
|
||||
[
|
||||
"docker_host_network_2",
|
||||
6
|
||||
],
|
||||
[
|
||||
"traffic_chart",
|
||||
6
|
||||
],
|
||||
[
|
||||
"wide_latency",
|
||||
6
|
||||
],
|
||||
[
|
||||
"backend_table",
|
||||
12
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mobile_status",
|
||||
"form": "mobile",
|
||||
@@ -642,5 +1078,51 @@
|
||||
12
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "mobile_diagnostics",
|
||||
"form": "mobile",
|
||||
"name_key": "dashboardBuiltinMobileDiagnostics",
|
||||
"description_key": "dashboardBuiltinMobileDiagnosticsHelp",
|
||||
"dashboard_density": "compact",
|
||||
"overview_samples": 120,
|
||||
"widgets": [
|
||||
[
|
||||
"extra_total_rps",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_response_latency",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_request_error_rate",
|
||||
2
|
||||
],
|
||||
[
|
||||
"backend_health",
|
||||
2
|
||||
],
|
||||
[
|
||||
"memory",
|
||||
2
|
||||
],
|
||||
[
|
||||
"extra_cert_expiry",
|
||||
2
|
||||
],
|
||||
[
|
||||
"traffic_chart",
|
||||
12
|
||||
],
|
||||
[
|
||||
"backend_tiny",
|
||||
12
|
||||
],
|
||||
[
|
||||
"memory_breakdown",
|
||||
12
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -38,7 +38,8 @@
|
||||
if (group.scope === "access") return t("fileLogsAccessLog");
|
||||
if (group.scope === "error") return t("fileLogsErrorLog");
|
||||
if (group.scope === "unmatched") return t("fileLogsUnmatched");
|
||||
return group.site || group.id.replace(/^vhost:/, "");
|
||||
const site = group.site || group.id.replace(/^vhost:/, "");
|
||||
return group.domains.length ? `${site} (${group.domains.join(", ")})` : site;
|
||||
}
|
||||
function fileLabel(source) {
|
||||
const rotation = Number(source.rotation) || 0;
|
||||
@@ -51,7 +52,7 @@
|
||||
for (const source of sources) {
|
||||
const id = source.group_id || source.id;
|
||||
let group = result.get(id);
|
||||
if (!group) { group = { id, scope: scopeOf(source), site: source.site || "", format: source.format, files: [], size: 0, modified_ms: 0 }; result.set(id, group); }
|
||||
if (!group) { group = { id, scope: scopeOf(source), site: source.site || "", domains: Array.isArray(source.domains) ? [...new Set(source.domains.filter(domain => typeof domain === "string" && domain))] : [], format: source.format, files: [], size: 0, modified_ms: 0 }; result.set(id, group); }
|
||||
group.files.push(source); group.size += Number(source.size) || 0;
|
||||
group.modified_ms = Math.max(group.modified_ms, Number(source.modified_ms) || 0);
|
||||
}
|
||||
@@ -321,8 +322,9 @@
|
||||
params.set("offset", String(offset)); params.set("limit", String(currentLimit()));
|
||||
return params.toString();
|
||||
}
|
||||
async function refresh(reset = false) {
|
||||
async function refresh(reset = false, reloadInventory = false) {
|
||||
if (!authenticated) return;
|
||||
if (reloadInventory) inventory = null;
|
||||
if (reset) offset = 0;
|
||||
if (busy) { pendingRefresh = true; return; }
|
||||
busy = true; $("file-logs-refresh").disabled = true;
|
||||
@@ -391,7 +393,7 @@
|
||||
});
|
||||
$("file-logs-open").addEventListener("click", () => { $("logs-menu").open = false; setPanel("filelogs"); });
|
||||
$("settings-file-logs-open").addEventListener("click", () => setPanel("filelogs"));
|
||||
$("file-logs-refresh").addEventListener("click", () => refresh(true));
|
||||
$("file-logs-refresh").addEventListener("click", () => refresh(true, true));
|
||||
$("file-logs-filter").addEventListener("submit", event => { event.preventDefault(); void refresh(true); });
|
||||
$("file-log-q").addEventListener("input", () => { clearTimeout(searchTimer); searchTimer = setTimeout(() => void refresh(true), 250); });
|
||||
$("file-log-limit").addEventListener("change", () => refresh(true));
|
||||
@@ -417,5 +419,5 @@
|
||||
$("file-logs-prev").addEventListener("click", () => { offset = Math.max(0, offset - currentLimit()); void refresh(); });
|
||||
$("file-logs-next").addEventListener("click", () => { if (offset + currentLimit() < lastTotal) { offset += currentLimit(); void refresh(); } });
|
||||
syncColumnPicker(); syncHeaders();
|
||||
window.rustProxyFileLogs = { refresh: () => refresh(false), reset, inventory: loadInventory, applyPreferences };
|
||||
window.rustProxyFileLogs = { refresh: () => refresh(false, true), reset, inventory: loadInventory, applyPreferences };
|
||||
})();
|
||||
Reference in new issue
Block a user