|
|
|
@ -4,6 +4,7 @@ import React, { FC, useState } from 'react'; |
|
|
|
|
import { GrafanaTheme2 } from '@grafana/data'; |
|
|
|
|
import { Card, Link, useStyles2, useTheme2 } from '@grafana/ui'; |
|
|
|
|
|
|
|
|
|
import LabelsField from './LabelsField'; |
|
|
|
|
import { RuleEditorSection } from './RuleEditorSection'; |
|
|
|
|
|
|
|
|
|
export const NotificationsStep: FC = () => { |
|
|
|
@ -25,18 +26,22 @@ export const NotificationsStep: FC = () => { |
|
|
|
|
<div className={styles.contentWrapper}> |
|
|
|
|
{!hideFlowChart && ( |
|
|
|
|
<img |
|
|
|
|
className={styles.flowChart} |
|
|
|
|
src={`/public/img/alerting/notification_policy_${theme.name.toLowerCase()}.svg`} |
|
|
|
|
alt="notification policy flow chart" |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
<Card className={styles.card}> |
|
|
|
|
<Card.Heading>Root route – default for all alerts</Card.Heading> |
|
|
|
|
<Card.Description> |
|
|
|
|
Without custom labels, your alert will be routed through the root route. To view and edit the root route, go |
|
|
|
|
to <Link href="/alerting/routes">notification policies</Link> or contact your admin in case you are using |
|
|
|
|
non-Grafana alert management. |
|
|
|
|
</Card.Description> |
|
|
|
|
</Card> |
|
|
|
|
<div style={{ display: 'flex', flexDirection: 'column' }}> |
|
|
|
|
<LabelsField /> |
|
|
|
|
<Card className={styles.card}> |
|
|
|
|
<Card.Heading>Root route – default for all alerts</Card.Heading> |
|
|
|
|
<Card.Description> |
|
|
|
|
Without custom labels, your alert will be routed through the root route. To view and edit the root route, |
|
|
|
|
go to <Link href="/alerting/routes">notification policies</Link> or contact your admin in case you are |
|
|
|
|
using non-Grafana alert management. |
|
|
|
|
</Card.Description> |
|
|
|
|
</Card> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</RuleEditorSection> |
|
|
|
|
); |
|
|
|
@ -54,6 +59,8 @@ const getStyles = (theme: GrafanaTheme2) => ({ |
|
|
|
|
`,
|
|
|
|
|
card: css` |
|
|
|
|
max-width: 500px; |
|
|
|
|
margin-left: ${theme.spacing(3)}; |
|
|
|
|
`,
|
|
|
|
|
flowChart: css` |
|
|
|
|
margin-right: ${theme.spacing(3)}; |
|
|
|
|
`,
|
|
|
|
|
}); |
|
|
|
|