Fix duration histograms in status and analysis view, use defaults

This commit is contained in:
Christoph Kluge 2025-01-27 12:35:42 +01:00
parent 64f60905b4
commit 83d472ecd6
2 changed files with 18 additions and 5 deletions

View File

@ -174,6 +174,7 @@
}, },
}); });
// Note: Different footprints than those saved in DB per Job -> Caused by Legacy Naming
$: footprintsQuery = queryStore({ $: footprintsQuery = queryStore({
client: client, client: client,
query: gql` query: gql`
@ -470,10 +471,12 @@
height={300} height={300}
data={convert2uplot($statsQuery.data.stats[0].histDuration)} data={convert2uplot($statsQuery.data.stats[0].histDuration)}
title="Duration Distribution" title="Duration Distribution"
xlabel="Current Runtimes" xlabel="Current Job Runtimes"
xunit="Hours" xunit="Runtime"
ylabel="Number of Jobs" ylabel="Number of Jobs"
yunit="Jobs" yunit="Jobs"
usesBins
xtime
/> />
{/key} {/key}
</Col> </Col>

View File

@ -463,7 +463,7 @@
<hr /> <hr />
<!-- Usage Stats as Histograms --> <!-- User and Project Stats as Pie-Charts -->
<Row cols={{ lg: 4, md: 2, sm: 1 }}> <Row cols={{ lg: 4, md: 2, sm: 1 }}>
<Col class="p-2"> <Col class="p-2">
@ -587,17 +587,23 @@
{/key} {/key}
</Col> </Col>
</Row> </Row>
<hr class="my-2" /> <hr class="my-2" />
<!-- Static Stats as Histograms : Running Duration && Allocated Hardware Counts-->
<Row cols={{ lg: 2, md: 1 }}> <Row cols={{ lg: 2, md: 1 }}>
<Col class="p-2"> <Col class="p-2">
{#key $mainQuery.data.stats} {#key $mainQuery.data.stats}
<Histogram <Histogram
data={convert2uplot($mainQuery.data.stats[0].histDuration)} data={convert2uplot($mainQuery.data.stats[0].histDuration)}
title="Duration Distribution" title="Duration Distribution"
xlabel="Current Runtimes" xlabel="Current Job Runtimes"
xunit="Hours" xunit="Runtime"
ylabel="Number of Jobs" ylabel="Number of Jobs"
yunit="Jobs" yunit="Jobs"
usesBins
xtime
/> />
{/key} {/key}
</Col> </Col>
@ -640,7 +646,11 @@
{/key} {/key}
</Col> </Col>
</Row> </Row>
<hr class="my-2" /> <hr class="my-2" />
<!-- Selectable Stats as Histograms : Average Values of Running Jobs -->
{#if metricsInHistograms} {#if metricsInHistograms}
{#key $mainQuery.data.stats[0].histMetrics} {#key $mainQuery.data.stats[0].histMetrics}
<PlotGrid <PlotGrid