message: fix: catch errors fetching metrics on the pod list page
diff: @@ -517,7 +517,17 @@ export const PodsPage = connect<{}, PodPagePropsFromDispatch, PodPageProps>(
  /* eslint-disable react-hooks/exhaustive-deps */
  React.useEffect(() => {
  if (showMetrics) {
  - const updateMetrics = () => fetchPodMetrics(namespace).then(setPodMetrics);
  + const updateMetrics = () =>
  + fetchPodMetrics(namespace)
  + .then(setPodMetrics)
  + .catch((e) => {
  + // Just log the error here. Showing a warning alert could be more annoying
  + // than helpful. It should be obvious there are no metrics in the list, and
  + // if monitoring is broken, it'll be really apparent since none of the
  + // graphs and dashboards will load in the UI.
  + // eslint-disable-next-line no-console
  + console.error('Unable to fetch pod metrics', e);
  + });
  updateMetrics();
  const id = setInterval(updateMetrics, 30 * 1000);
  return () => clearInterval(id);
  