add mongo stats
This commit is contained in:
1 parent
2c89086b68
commit
290adf024c
2 files changed
+9
-3
No files matched your search
@@ -1,12 +1,15 @@
|
|||||||
import Stack from "@mui/material/Stack";
|
import Stack from "@mui/material/Stack";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import { Stats } from "@/Pages/Logs/components/Stats";
|
import { Stats } from "@/Pages/Logs/components/Stats";
|
||||||
|
import { MongoStats } from "@/Pages/Logs/components/MongoStats";
|
||||||
import { StatGauges } from "@/Pages/Logs/components/StatGauges";
|
import { StatGauges } from "@/Pages/Logs/components/StatGauges";
|
||||||
|
import { StatBox } from "@/Components/design-elements";
|
||||||
|
|
||||||
import { useTheme } from "@mui/material";
|
import { useTheme } from "@mui/material";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { useGet } from "@/Hooks/UseApi";
|
import { useGet } from "@/Hooks/UseApi";
|
||||||
import type { Diagnostics } from "@/Types/Diagnostics";
|
import type { Diagnostics } from "@/Types/Diagnostics";
|
||||||
|
import { LAYOUT } from "@/Utils/Theme/constants";
|
||||||
|
|
||||||
export const TabDiagnostics = () => {
|
export const TabDiagnostics = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
@@ -24,7 +27,7 @@ export const TabDiagnostics = () => {
|
|||||||
<Stack gap={theme.spacing(1)}>
|
<Stack gap={theme.spacing(1)}>
|
||||||
<Typography
|
<Typography
|
||||||
variant="eyebrow"
|
variant="eyebrow"
|
||||||
color="text.secondary"
|
color={theme.palette.text.secondary}
|
||||||
>
|
>
|
||||||
{t("pages.logs.diagnostics.sections.runtimeStats.title")}
|
{t("pages.logs.diagnostics.sections.runtimeStats.title")}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -38,7 +41,7 @@ export const TabDiagnostics = () => {
|
|||||||
<Stack gap={theme.spacing(1)}>
|
<Stack gap={theme.spacing(1)}>
|
||||||
<Typography
|
<Typography
|
||||||
variant="eyebrow"
|
variant="eyebrow"
|
||||||
color="text.secondary"
|
color={theme.palette.text.secondary}
|
||||||
>
|
>
|
||||||
{t("pages.logs.diagnostics.sections.memoryCpu.title")}
|
{t("pages.logs.diagnostics.sections.memoryCpu.title")}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -48,6 +51,9 @@ export const TabDiagnostics = () => {
|
|||||||
</Stack>
|
</Stack>
|
||||||
<StatGauges diagnostics={diagnostics} />
|
<StatGauges diagnostics={diagnostics} />
|
||||||
</Stack>
|
</Stack>
|
||||||
|
<Stack gap={theme.spacing(4)}>
|
||||||
|
<MongoStats diagnostics={diagnostics} />
|
||||||
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -8,7 +8,7 @@ import { useTranslation } from "react-i18next";
|
|||||||
|
|
||||||
const LogsPage = () => {
|
const LogsPage = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [activeTab, setActiveTab] = useState<number>(1);
|
const [activeTab, setActiveTab] = useState<number>(2);
|
||||||
return (
|
return (
|
||||||
<BasePage headerKey="logs">
|
<BasePage headerKey="logs">
|
||||||
<Tabs
|
<Tabs
|
||||||
|
|||||||
Reference in new issue
Block a user