diff --git a/client/src/components/podStatusChart.tsx b/client/src/components/podStatusChart.tsx index 8d55ebf..a593b25 100644 --- a/client/src/components/podStatusChart.tsx +++ b/client/src/components/podStatusChart.tsx @@ -1,17 +1,25 @@ -import _ from 'lodash'; import React from 'react'; -import Chart from './chart'; import LoadingChart from './loadingChart'; import {Pod} from '../utils/types'; +import PrometheusGraph from '../views/prometheusgraph'; export default function PodStatusChart({items}: {items?: Pod[]}) { const available = items && items.length; - const count = _.sumBy(items, x => x.status.phase === 'Running' ? 1 : 0); // eslint-disable-line no-confusing-arrow - + const query = { + queryString: 'sum(kube_pod_info)', + title: 'Pod Count', + yAxisMin: 0, + yAxisUnit: 'Pods', + }; return (