add a link to monitoring agent to the create infrastructure monitor page

This commit is contained in:
Alex Holliday committed 2024-11-26 15:05:56 +08:00
1 parent be19b5b258
commit d937f5463c
1 file changed
+16 -4
@@ -10,7 +10,8 @@ import {
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { createToast } from "../../../Utils/toastUtils"; import { createToast } from "../../../Utils/toastUtils";
import { logger } from "../../../Utils/Logger"; import Link from "../../../Components/Link";
import { ConfigBox } from "../../Monitors/styled"; import { ConfigBox } from "../../Monitors/styled";
import Field from "../../../Components/Inputs/Field"; import Field from "../../../Components/Inputs/Field";
import Select from "../../../Components/Inputs/Select"; import Select from "../../../Components/Inputs/Select";
@@ -233,11 +234,21 @@ const CreateInfrastructureMonitor = () => {
</Typography> </Typography>
<ConfigBox> <ConfigBox>
<Box> <Box>
<Stack gap={theme.spacing(6)}>
<Typography component="h2">General settings</Typography> <Typography component="h2">General settings</Typography>
<Typography component="p"> <Typography component="p">
Here you can select the URL of the host, together with the friendly name and Here you can select the URL of the host, together with the friendly name
authorization secret to connect to the server agent. and authorization secret to connect to the server agent.
</Typography> </Typography>
<Typography component="p">
The server you are monitoring must be running the{" "}
<Link
level="primary"
url="https://github.com/bluewave-labs/checkmate-agent"
label="Checkmate Monitoring Agent"
/>
</Typography>
</Stack>
</Box> </Box>
<Stack gap={theme.spacing(15)}> <Stack gap={theme.spacing(15)}>
<Field <Field
@@ -297,7 +308,8 @@ const CreateInfrastructureMonitor = () => {
<Box> <Box>
<Typography component="h2">Customize alerts</Typography> <Typography component="h2">Customize alerts</Typography>
<Typography component="p"> <Typography component="p">
Send a notification to user(s) when thresholds exceed a specified percentage. Send a notification to user(s) when thresholds exceed a specified
percentage.
</Typography> </Typography>
</Box> </Box>
<Stack gap={theme.spacing(6)}> <Stack gap={theme.spacing(6)}>