The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/public/app/features/alerting/unified/AlertingNotEnabled.tsx

36 lines
1.0 KiB

import { NavModel } from '@grafana/data';
import { useTranslate } from '@grafana/i18n';
import { Page } from 'app/core/components/Page/Page';
import { withPageErrorBoundary } from './withPageErrorBoundary';
function FeatureTogglePage() {
const { t } = useTranslate();
const navModel: NavModel = {
node: {
text: t('alerting.feature-toggle-page.nav-model.text.alerting-is-not-enabled', 'Alerting is not enabled'),
hideFromBreadcrumbs: true,
subTitle: t(
'alerting.feature-toggle-page.nav-model.subTitle.enable-alerting-grafana-config',
'To enable alerting, enable it in the Grafana config'
),
},
main: {
text: t('alerting.feature-toggle-page.nav-model.text.alerting-is-not-enabled', 'Alerting is not enabled'),
},
};
return (
<Page navModel={navModel}>
<Page.Contents>
<pre>
{`[unified_alerting]
enabled = true
`}
</pre>
</Page.Contents>
</Page>
);
}
export default withPageErrorBoundary(FeatureTogglePage);