mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Add prometheus queries * Add stats * Refactor transform * Fix stat format * Refactor transform * Hide behind feature flag * Better linking error messages * Add test * Add test for datasource * Fix lint * Make optionality checking more explicit
29 lines
960 B
TypeScript
29 lines
960 B
TypeScript
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
|
import { DataSourceHttpSettings } from '@grafana/ui';
|
|
import { TraceToLogsSettings } from 'app/core/components/TraceToLogsSettings';
|
|
import React from 'react';
|
|
import { ServiceMapSettings } from './ServiceMapSettings';
|
|
import { config } from '@grafana/runtime';
|
|
|
|
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 && (
|
|
<ServiceMapSettings options={options} onOptionsChange={onOptionsChange} />
|
|
)}
|
|
</>
|
|
);
|
|
};
|