FeatureTogglePage.tsx 684 B

1234567891011121314151617181920212223242526272829303132
  1. import React from 'react';
  2. import Page from 'app/core/components/Page/Page';
  3. import { useNavModel } from 'app/core/hooks/useNavModel';
  4. export default function FeatureTogglePage() {
  5. const navModel = useNavModel('alert-list');
  6. return (
  7. <Page navModel={navModel}>
  8. <Page.Contents>
  9. <h1>Alerting is not enabled</h1>
  10. To enable alerting, enable it in the Grafana config:
  11. <div>
  12. <pre>
  13. {`[unified_alerting]
  14. enable = true
  15. `}
  16. </pre>
  17. </div>
  18. <div>
  19. For legacy alerting
  20. <pre>
  21. {`[alerting]
  22. enable = true
  23. `}
  24. </pre>
  25. </div>
  26. </Page.Contents>
  27. </Page>
  28. );
  29. }