mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Add start time and end time parameters while querying tempo traces * Added configurable time shift to query by trace id * Test that the URL is formatted correctly * Added test to check for time shift * Improved label and tooltip of new time shift settings Co-authored-by: André Pereira <adrapereira@gmail.com>
64 lines
2.2 KiB
TypeScript
64 lines
2.2 KiB
TypeScript
import React from 'react';
|
|
|
|
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
|
import { config } from '@grafana/runtime';
|
|
import { DataSourceHttpSettings } from '@grafana/ui';
|
|
import { SpanBarSettings } from '@jaegertracing/jaeger-ui-components';
|
|
import { NodeGraphSettings } from 'app/core/components/NodeGraphSettings';
|
|
import { TraceToLogsSettings } from 'app/core/components/TraceToLogs/TraceToLogsSettings';
|
|
import { TraceToMetricsSettings } from 'app/core/components/TraceToMetrics/TraceToMetricsSettings';
|
|
|
|
import { LokiSearchSettings } from './LokiSearchSettings';
|
|
import { QuerySettings } from './QuerySettings';
|
|
import { SearchSettings } from './SearchSettings';
|
|
import { ServiceGraphSettings } from './ServiceGraphSettings';
|
|
|
|
export type Props = DataSourcePluginOptionsEditorProps;
|
|
|
|
export const ConfigEditor = ({ options, onOptionsChange }: Props) => {
|
|
return (
|
|
<>
|
|
<DataSourceHttpSettings
|
|
defaultUrl="http://tempo"
|
|
dataSourceConfig={options}
|
|
showAccessOptions={false}
|
|
onChange={onOptionsChange}
|
|
/>
|
|
|
|
<div className="gf-form-group">
|
|
<TraceToLogsSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
|
|
{config.featureToggles.traceToMetrics ? (
|
|
<div className="gf-form-group">
|
|
<TraceToMetricsSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
) : null}
|
|
|
|
<div className="gf-form-group">
|
|
<ServiceGraphSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
|
|
<div className="gf-form-group">
|
|
<SearchSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
|
|
<div className="gf-form-group">
|
|
<NodeGraphSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
|
|
<div className="gf-form-group">
|
|
<LokiSearchSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
|
|
<div className="gf-form-group">
|
|
<QuerySettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
|
|
<div className="gf-form-group">
|
|
<SpanBarSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</div>
|
|
</>
|
|
);
|
|
};
|