import React, { SyntheticEvent } from 'react'; import { EventsWithValidation, FormField, FormLabel, Input, regexValidation, Select } from '@grafana/ui'; import { DataSourceSettings } from '@grafana/data'; import { PromOptions } from '../types'; const httpOptions = [ { value: 'GET', label: 'GET' }, { value: 'POST', label: 'POST' }, ]; type Props = { value: DataSourceSettings; onChange: (value: DataSourceSettings) => void; }; export const PromSettings = (props: Props) => { const { value, onChange } = props; return ( <>
} tooltip="Set this to your global scrape interval defined in your Prometheus config file. This will be used as a lower limit for the Prometheus step query parameter." />
} tooltip="Set the Prometheus query timeout." />
HTTP Method