diff --git a/commafeed-client/src/pages/admin/MetricsPage.tsx b/commafeed-client/src/pages/admin/MetricsPage.tsx index b0de53e1..c0e1ef01 100644 --- a/commafeed-client/src/pages/admin/MetricsPage.tsx +++ b/commafeed-client/src/pages/admin/MetricsPage.tsx @@ -1,13 +1,11 @@ -import { Accordion, Box, Tabs } from "@mantine/core" +import { Accordion, Box } from "@mantine/core" import { client } from "app/client" import { Loader } from "components/Loader" import { Gauge } from "components/metrics/Gauge" import { Meter } from "components/metrics/Meter" import { MetricAccordionItem } from "components/metrics/MetricAccordionItem" -import { Timer } from "components/metrics/Timer" import { useEffect } from "react" import { useAsync } from "react-async-hook" -import { TbChartAreaLine, TbClock } from "react-icons/tb" const shownMeters: Record = { "com.commafeed.backend.feed.FeedRefreshEngine.refill": "Feed queue refill rate", @@ -42,46 +40,25 @@ export function MetricsPage() { }, [query.execute]) if (!query.result) return - const { meters, gauges, timers } = query.result.data + const { meters, gauges } = query.result.data return ( - - - }> - Stats - - }> - Timers - - + <> + + {Object.keys(shownMeters).map(m => ( + + + + ))} + - - - {Object.keys(shownMeters).map(m => ( - - - - ))} - - - - {Object.keys(shownGauges).map(g => ( - - {shownGauges[g]}:  - - - ))} - - - - - - {Object.keys(timers).map(key => ( - - - - ))} - - - + + {Object.keys(shownGauges).map(g => ( + + {shownGauges[g]}:  + + + ))} + + ) } diff --git a/commafeed-server/TODO.md b/commafeed-server/TODO.md index 49ee11f4..8b9bfe32 100644 --- a/commafeed-server/TODO.md +++ b/commafeed-server/TODO.md @@ -18,5 +18,3 @@ Nice to have: - rename "servlets" since they are now rest endpoints - warnings hibernate on startup - OPML encoding is not handled correctly -- remove Timers metrics page -