import { Alert, Table } from "@mantine/core"; import { IconBell, IconBellOff, IconInfoCircle } from "@tabler/icons-react"; import { useSuspenseAPIQuery } from "../api/api"; import { AlertmanagersResult } from "../api/responseTypes/alertmanagers"; import EndpointLink from "../components/EndpointLink"; import InfoPageCard from "../components/InfoPageCard"; import InfoPageStack from "../components/InfoPageStack"; export const targetPoolDisplayLimit = 20; export default function AlertmanagerDiscoveryPage() { // Load the list of all available scrape pools. const { data: { data: { activeAlertmanagers, droppedAlertmanagers }, }, } = useSuspenseAPIQuery({ path: `/alertmanagers`, }); return ( {activeAlertmanagers.length === 0 ? ( }> No active alertmanagers found. ) : ( {activeAlertmanagers.map((alertmanager) => ( ))}
)}
{droppedAlertmanagers.length === 0 ? ( }> No dropped alertmanagers found. ) : ( {droppedAlertmanagers.map((alertmanager) => ( ))}
)}
); }