mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-12 16:44:05 -08:00
Make annotations display on /alerts page consistent with /rules
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
adf6c105a7
commit
7e0cba568e
|
@ -5,6 +5,7 @@ import {
|
||||||
Card,
|
Card,
|
||||||
Group,
|
Group,
|
||||||
rem,
|
rem,
|
||||||
|
Table,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
useComputedColorScheme,
|
useComputedColorScheme,
|
||||||
} from "@mantine/core";
|
} from "@mantine/core";
|
||||||
|
|
|
@ -376,19 +376,15 @@ export default function AlertsPage() {
|
||||||
{showAnnotations && (
|
{showAnnotations && (
|
||||||
<Table.Tr>
|
<Table.Tr>
|
||||||
<Table.Td colSpan={4}>
|
<Table.Td colSpan={4}>
|
||||||
<Table
|
<Table mt="md" mb="xl">
|
||||||
mt="md"
|
|
||||||
mb="xl"
|
|
||||||
withTableBorder
|
|
||||||
withColumnBorders
|
|
||||||
bg="var(--mantine-color-body)"
|
|
||||||
>
|
|
||||||
<Table.Tbody>
|
<Table.Tbody>
|
||||||
{Object.entries(
|
{Object.entries(
|
||||||
a.annotations
|
a.annotations
|
||||||
).map(([k, v]) => (
|
).map(([k, v]) => (
|
||||||
<Table.Tr key={k}>
|
<Table.Tr key={k}>
|
||||||
<Table.Th>{k}</Table.Th>
|
<Table.Th c="light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-4))">
|
||||||
|
{k}
|
||||||
|
</Table.Th>
|
||||||
<Table.Td>{v}</Table.Td>
|
<Table.Td>{v}</Table.Td>
|
||||||
</Table.Tr>
|
</Table.Tr>
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Reference in a new issue