import React from 'react'; import { DataSourcePluginOptionsEditorProps, SelectableValue } from '@grafana/data'; import { DataSourceHttpSettings, InlineFormLabel, Select } from '@grafana/ui'; import { AlertManagerDataSourceJsonData, AlertManagerImplementation } from './types'; export type Props = DataSourcePluginOptionsEditorProps; const IMPL_OPTIONS: SelectableValue[] = [ { value: AlertManagerImplementation.mimir, icon: 'public/img/alerting/mimir_logo.svg', label: 'Mimir', description: `https://grafana.com/oss/mimir/. An open source, horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus.`, }, { 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