{#if $nodesQuery.error}
{$nodesQuery.error.message}
{:else if $nodesQuery.fetching || $initq.fetching}
{:else}
h.host.includes(hostnameFilter) && h.metrics.some(m => m.name == selectedMetric && m.scope == 'node'))
.map(function (h) {
let thisConfig = metricConfig(cluster, selectedMetric)
let thisSCIndex = thisConfig.subClusters.findIndex(sc => sc.name == h.subCluster)
// Metric remove == true
if (thisSCIndex >= 0) {
if (thisConfig.subClusters[thisSCIndex].remove == true) {
return { host: h.host, subCluster: h.subCluster, data: null, removed: true }
}
}
// Else
return { host: h.host, subCluster: h.subCluster, data: h.metrics.find(m => m.name == selectedMetric && m.scope == 'node'), removed: false }
})
.sort((a, b) => a.host.localeCompare(b.host))}>
{#if item.removed == false && item.data != null}
c.name == cluster)}
subCluster={item.subCluster} />
{:else if item.removed == true && item.data == null}
Metric '{ selectedMetric }' disabled for subcluster '{ item.subCluster }'
{:else}
Missing Data
{/if}
{/if}