You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.4 KiB
40 lines
1.4 KiB
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
|
import { DataSourceHttpSettings } from '@grafana/ui';
|
|
import { TraceToLogsSettings } from 'app/core/components/TraceToLogsSettings';
|
|
import React from 'react';
|
|
import { ServiceGraphSettings } from './ServiceGraphSettings';
|
|
import { config } from '@grafana/runtime';
|
|
import { SearchSettings } from './SearchSettings';
|
|
import { NodeGraphSettings } from 'app/core/components/NodeGraphSettings';
|
|
|
|
export type Props = DataSourcePluginOptionsEditorProps;
|
|
|
|
export const ConfigEditor: React.FC<Props> = ({ options, onOptionsChange }) => {
|
|
return (
|
|
<>
|
|
<DataSourceHttpSettings
|
|
defaultUrl="http://tempo"
|
|
dataSourceConfig={options}
|
|
showAccessOptions={false}
|
|
onChange={onOptionsChange}
|
|
/>
|
|
|
|
<div className="gf-form-group">
|
|
<TraceToLogsSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
{config.featureToggles.tempoServiceGraph && (
|
|
<div className="gf-form-group">
|
|
<ServiceGraphSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
)}
|
|
{config.featureToggles.tempoSearch && (
|
|
<div className="gf-form-group">
|
|
<SearchSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
)}
|
|
<div className="gf-form-group">
|
|
<NodeGraphSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
</>
|
|
);
|
|
};
|
|
|