2020-03-25 06:25:39 -05:00
|
|
|
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
|
|
|
import { DataSourceHttpSettings } from '@grafana/ui';
|
2020-12-10 12:42:43 -06:00
|
|
|
import { TraceToLogsSettings } from 'app/core/components/TraceToLogsSettings';
|
|
|
|
import React from 'react';
|
2020-03-25 06:25:39 -05:00
|
|
|
|
|
|
|
export type Props = DataSourcePluginOptionsEditorProps;
|
|
|
|
|
|
|
|
export const ConfigEditor: React.FC<Props> = ({ options, onOptionsChange }) => {
|
|
|
|
return (
|
2020-12-10 12:42:43 -06:00
|
|
|
<>
|
|
|
|
<DataSourceHttpSettings
|
|
|
|
defaultUrl="http://localhost:9411"
|
|
|
|
dataSourceConfig={options}
|
2021-01-18 10:31:32 -06:00
|
|
|
showAccessOptions={false}
|
2020-12-10 12:42:43 -06:00
|
|
|
onChange={onOptionsChange}
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TraceToLogsSettings options={options} onOptionsChange={onOptionsChange} />
|
|
|
|
</>
|
2020-03-25 06:25:39 -05:00
|
|
|
);
|
|
|
|
};
|