mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Show alert annotations on /rules page
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
5956d482e8
commit
adf6c105a7
|
@ -94,20 +94,20 @@ const RuleDefinition: FC<{ rule: Rule }> = ({ rule }) => {
|
||||||
<LabelBadges labels={rule.labels} />
|
<LabelBadges labels={rule.labels} />
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
{/* {Object.keys(r.annotations).length > 0 && (
|
{rule.type === "alerting" && Object.keys(rule.annotations).length > 0 && (
|
||||||
<Group mt="md" gap="xs">
|
<Table mt="lg" fz="sm">
|
||||||
{Object.entries(r.annotations).map(([k, v]) => (
|
<Table.Tbody>
|
||||||
<Badge
|
{Object.entries(rule.annotations).map(([k, v]) => (
|
||||||
variant="light"
|
<Table.Tr key={k}>
|
||||||
color="orange.9"
|
<Table.Th c="light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-4))">
|
||||||
styles={{ label: { textTransform: "none" } }}
|
{k}
|
||||||
key={k}
|
</Table.Th>
|
||||||
>
|
<Table.Td>{v}</Table.Td>
|
||||||
{k}: {v}
|
</Table.Tr>
|
||||||
</Badge>
|
|
||||||
))}
|
))}
|
||||||
</Group>
|
</Table.Tbody>
|
||||||
)} */}
|
</Table>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue