EVOLUTION-MANAGER
Edit File: ConfigEditor.tsx
import React from 'react'; import { DataSourceHttpSettings } from '@grafana/ui'; import { DataSourcePluginOptionsEditorProps } from '@grafana/data'; import { PromSettings } from './PromSettings'; import { PromOptions } from '../types'; export type Props = DataSourcePluginOptionsEditorProps<PromOptions>; export const ConfigEditor = (props: Props) => { const { options, onOptionsChange } = props; return ( <> <DataSourceHttpSettings defaultUrl="http://localhost:9090" dataSourceConfig={options} showAccessOptions={true} onChange={onOptionsChange} /> <PromSettings value={options} onChange={onOptionsChange} /> </> ); };