{#if $initq.error} {$initq.error.message} {:else if $initq.fetching} {:else} { const diff = Date.now() - to; from = new Date(from.getTime() + diff); to = new Date(to.getTime() + diff); }} /> Metric Find Node {/if}
{#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((h) => ({ host: h.host, subCluster: h.subCluster, data: h.metrics.find( (m) => m.name == selectedMetric && m.scope == "node", ), disabled: checkMetricDisabled( selectedMetric, cluster, h.subCluster, ), })) .sort((a, b) => a.host.localeCompare(b.host))} >

{item.host} ({item.subCluster})

{#if item.disabled === false && item.data} c.name == cluster)} subCluster={item.subCluster} forNode={true} /> {:else if item.disabled === true && item.data} Metric disabled for subcluster {selectedMetric}:{item.subCluster} {:else} No dataset returned for {selectedMetric} {/if}
{/if}