mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-18 08:51:45 +01:00
Streamline missing data warnings, review logging
This commit is contained in:
@@ -229,7 +229,10 @@
|
||||
></Card
|
||||
>
|
||||
{:else}
|
||||
<Card body color="warning">No dataset returned</Card>
|
||||
<Card body class="mx-2" color="warning">
|
||||
<p>No dataset returned for <b>{metrics[i]}</b></p>
|
||||
<p class="mb-1">Metric was not found in metric store for cluster <b>{job.cluster}</b>.</p>
|
||||
</Card>
|
||||
{/if}
|
||||
</td>
|
||||
{/each}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
import uPlot from "uplot";
|
||||
import { formatNumber, formatDurationTime } from "../units.js";
|
||||
import { getContext, onMount, onDestroy } from "svelte";
|
||||
import { Card } from "@sveltestrap/sveltestrap";
|
||||
import { Card, CardBody, CardHeader } from "@sveltestrap/sveltestrap";
|
||||
|
||||
/* Svelte 5 Props */
|
||||
let {
|
||||
@@ -633,7 +633,13 @@
|
||||
style="background-color: {backgroundColor()};" class={forNode ? 'py-2 rounded' : 'rounded'}
|
||||
></div>
|
||||
{:else}
|
||||
<Card body color="warning" class="mx-4"
|
||||
>Cannot render plot: No series data returned for <code>{metric}</code></Card
|
||||
>
|
||||
<Card color="warning" class={forNode ? 'mx-2' : 'mt-2'}>
|
||||
<CardHeader class="mb-0">
|
||||
<b>Empty Metric</b>
|
||||
</CardHeader>
|
||||
<CardBody>
|
||||
<p>Cannot render plot for <b>{metric}</b>.</p>
|
||||
<p class="mb-1">Metric found but returned without timeseries data.</p>
|
||||
</CardBody>
|
||||
</Card>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user