import React, { SyntheticEvent } from 'react'; import { EventsWithValidation, InlineFormLabel, regexValidation, LegacyForms } from '@grafana/ui'; const { Select, Input, FormField, Switch } = LegacyForms; import { SelectableValue, onUpdateDatasourceJsonDataOptionChecked, DataSourcePluginOptionsEditorProps, } from '@grafana/data'; import { PromOptions } from '../types'; const httpOptions = [ { value: 'GET', label: 'GET' }, { value: 'POST', label: 'POST' }, ]; type Props = Pick, 'options' | 'onOptionsChange'>; export const PromSettings = (props: Props) => { const { options, onOptionsChange } = props; return ( <>
} tooltip="Set this to the typical scrape and evaluation interval configured in Prometheus. Defaults to 15s." />
} tooltip="Set the Prometheus query timeout." />
HTTP Method