import { DataSourcePluginOptionsEditorProps, SelectableValue } from '@grafana/data'; import { DataSourceHttpSettings, InlineFormLabel, Select } from '@grafana/ui'; import React from 'react'; import { AlertManagerDataSourceJsonData, AlertManagerImplementation } from './types'; export type Props = DataSourcePluginOptionsEditorProps; const IMPL_OPTIONS: SelectableValue[] = [ { value: AlertManagerImplementation.cortex, label: 'Cortex', description: `https://cortexmetrics.io/`, }, { value: AlertManagerImplementation.prometheus, label: 'Prometheus', description: 'https://prometheus.io/. Does not support editing configuration via API, so contact points and notification policies are read-only.', }, ]; export const ConfigEditor: React.FC = ({ options, onOptionsChange }) => { return ( <>

Alertmanager

Implementation