diff --git a/api/schema.graphqls b/api/schema.graphqls index 5ff1a36..a95df84 100644 --- a/api/schema.graphqls +++ b/api/schema.graphqls @@ -358,6 +358,7 @@ type Query { from: Time! to: Time! ): [NodeMetrics!]! + nodeMetricsList( cluster: String! subCluster: String! diff --git a/web/frontend/src/generic/JobCompare.svelte b/web/frontend/src/generic/JobCompare.svelte index a1e7bfa..55966ac 100644 --- a/web/frontend/src/generic/JobCompare.svelte +++ b/web/frontend/src/generic/JobCompare.svelte @@ -26,7 +26,7 @@ /* Svelte 5 Props */ let { matchedCompareJobs = $bindable(0), - metrics = ccconfig?.plot_list_selectedMetrics, + metrics = getContext("cc-config")?.plot_list_selectedMetrics, filterBuffer = [], } = $props(); diff --git a/web/frontend/src/generic/plots/Comparogram.svelte b/web/frontend/src/generic/plots/Comparogram.svelte index b6f5fd1..2051088 100644 --- a/web/frontend/src/generic/plots/Comparogram.svelte +++ b/web/frontend/src/generic/plots/Comparogram.svelte @@ -44,7 +44,7 @@ /* Const Init */ const clusterCockpitConfig = getContext("cc-config"); - const lineWidth = clusterCockpitConfig.plot_general_lineWidth / window.devicePixelRatio; + const lineWidth = clusterCockpitConfig?.plot_general_lineWidth / window.devicePixelRatio || 2; const cbmode = clusterCockpitConfig?.plot_general_colorblindMode || false; // UPLOT SERIES INIT // diff --git a/web/frontend/src/status/StatisticsDash.svelte b/web/frontend/src/status/StatisticsDash.svelte index d3b4236..e573554 100644 --- a/web/frontend/src/status/StatisticsDash.svelte +++ b/web/frontend/src/status/StatisticsDash.svelte @@ -79,7 +79,7 @@ })); /* Functions */ - // TODO: Originally Uses User View Selection! -> Change to Status View + // TODO: Originally Uses User View Selection! -> Change to Status View : Adapt Mutations from TopUserSelect // function updateTopUserConfiguration(select) { // if (ccconfig[`status_view_selectedHistograms:${cluster}`] != select) { // updateConfigurationMutation({ diff --git a/web/frontend/src/status/StatusDash.svelte b/web/frontend/src/status/StatusDash.svelte index 57951a5..f98c1c3 100644 --- a/web/frontend/src/status/StatusDash.svelte +++ b/web/frontend/src/status/StatusDash.svelte @@ -54,6 +54,7 @@ /* Derived */ // Note: nodeMetrics are requested on configured $timestep resolution + // Result: The latest 5 minutes (datapoints) for each node independent of job const statusQuery = $derived(queryStore({ client: client, query: gql`