I would like to merge a fix in the prometheus backend. In case of missing data from all hosts of some metric, the backend would so far return a jobMetric object with a Series of length zero. This causes the frontend to crash inside MetricPlot.svelte where some checks rely on series[0].data.length
This PR only adds scope/metric data if at least one host returned values and fixes the issue.
Hi,
I would like to merge a fix in the prometheus backend. In case of missing data from all hosts of some metric, the backend would so far return a jobMetric object with a Series of length zero. This causes the frontend to crash inside MetricPlot.svelte where some checks rely on series[0].data.length
This PR only adds scope/metric data if at least one host returned values and fixes the issue.