mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-08-28 19:27:15 +00:00
@@ -28,6 +28,7 @@ export default function NodeStatusChart({items}: {items?: Node[]}) {
|
||||
|
||||
return (
|
||||
<div className='charts_item'>
|
||||
{/* eslint-disable-next-line no-nested-ternary */}
|
||||
{prometheusData.length ? (
|
||||
<PrometheusGraph
|
||||
queryString={query.queryString}
|
||||
|
||||
@@ -31,6 +31,7 @@ export default function PodCpuChart({items, metrics, pod}: {items?: Pod[], metri
|
||||
|
||||
return (
|
||||
<div className='charts_item'>
|
||||
{/* eslint-disable-next-line no-nested-ternary */}
|
||||
{prometheusData.length ? (
|
||||
<PrometheusGraph
|
||||
queryString={query.queryString}
|
||||
|
||||
@@ -32,6 +32,7 @@ export default function RamChart({items, metrics, pod}: {items?: Pod[], metrics?
|
||||
|
||||
return (
|
||||
<div className='charts_item'>
|
||||
{/* eslint-disable-next-line no-nested-ternary */}
|
||||
{prometheusData.length ? (
|
||||
<PrometheusGraph
|
||||
queryString={query.queryString}
|
||||
|
||||
@@ -27,21 +27,20 @@ export default function PodStatusChart({items}: {items?: Pod[]}) {
|
||||
}, [query.queryString]);
|
||||
return (
|
||||
<div className='charts_item'>
|
||||
{
|
||||
prometheusData.length ? (
|
||||
<PrometheusGraph
|
||||
queryString={query.queryString}
|
||||
title={query.title}
|
||||
yAxisMin={query.yAxisMin}
|
||||
yAxisUnit={query.yAxisUnit}
|
||||
prometheusData={prometheusData}
|
||||
/>
|
||||
) : items && available ? (
|
||||
<Chart used={count} pending={available - count} available={available} />
|
||||
) : (
|
||||
<LoadingChart />
|
||||
)
|
||||
}
|
||||
{/* eslint-disable-next-line no-nested-ternary */}
|
||||
{prometheusData.length ? (
|
||||
<PrometheusGraph
|
||||
queryString={query.queryString}
|
||||
title={query.title}
|
||||
yAxisMin={query.yAxisMin}
|
||||
yAxisUnit={query.yAxisUnit}
|
||||
prometheusData={prometheusData}
|
||||
/>
|
||||
) : items && available ? (
|
||||
<Chart used={count} pending={available - count} available={available} />
|
||||
) : (
|
||||
<LoadingChart />
|
||||
)}
|
||||
<div className='charts_itemLabel'>Pods</div>
|
||||
<div className='charts_itemSubLabel'>Ready vs Requested</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user