AlertHowToModal.tsx 772 B

12345678910111213141516171819202122
  1. import React from 'react';
  2. import { Modal, VerticalGroup } from '@grafana/ui';
  3. export interface AlertHowToModalProps {
  4. onDismiss: () => void;
  5. }
  6. export function AlertHowToModal({ onDismiss }: AlertHowToModalProps): JSX.Element {
  7. return (
  8. <Modal title="Adding an Alert" isOpen onDismiss={onDismiss} onClickBackdrop={onDismiss}>
  9. <VerticalGroup spacing="sm">
  10. <img src="public/img/alert_howto_new.png" alt="link to how to alert image" />
  11. <p>
  12. Alerts are added and configured in the Alert tab of any dashboard graph panel, letting you build and visualize
  13. an alert using existing queries.
  14. </p>
  15. <p>Remember to save the dashboard to persist your alert rule changes.</p>
  16. </VerticalGroup>
  17. </Modal>
  18. );
  19. }