mirror of https://github.com/grafana/grafana.git
parent
455cede699
commit
a851750b1c
|
|
@ -50,13 +50,16 @@ export function NodeGraphSettings({ options, onOptionsChange }: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const NodeGraphSection = ({ options, onOptionsChange }: DataSourcePluginOptionsEditorProps) => {
|
export const NodeGraphSection = ({ options, onOptionsChange }: DataSourcePluginOptionsEditorProps) => {
|
||||||
|
let suffix = options.type;
|
||||||
|
suffix += options.type === 'tempo' ? '/configure-tempo-data-source/#node-graph' : '/#node-graph';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ConfigSubSection
|
<ConfigSubSection
|
||||||
title="Node graph"
|
title="Node graph"
|
||||||
description={
|
description={
|
||||||
<ConfigDescriptionLink
|
<ConfigDescriptionLink
|
||||||
description="Show or hide the node graph visualization."
|
description="Show or hide the node graph visualization."
|
||||||
suffix={`${options.type}/#node-graph`}
|
suffix={suffix}
|
||||||
feature="the node graph"
|
feature="the node graph"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -253,13 +253,16 @@ export const getTimeShiftTooltip = (type: 'start' | 'end', defaultVal: string) =
|
||||||
export const invalidTimeShiftError = 'Invalid time shift. See tooltip for examples.';
|
export const invalidTimeShiftError = 'Invalid time shift. See tooltip for examples.';
|
||||||
|
|
||||||
export const TraceToLogsSection = ({ options, onOptionsChange }: DataSourcePluginOptionsEditorProps) => {
|
export const TraceToLogsSection = ({ options, onOptionsChange }: DataSourcePluginOptionsEditorProps) => {
|
||||||
|
let suffix = options.type;
|
||||||
|
suffix += options.type === 'tempo' ? '/configure-tempo-data-source/#trace-to-logs' : '/#trace-to-logs';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ConfigSection
|
<ConfigSection
|
||||||
title="Trace to logs"
|
title="Trace to logs"
|
||||||
description={
|
description={
|
||||||
<ConfigDescriptionLink
|
<ConfigDescriptionLink
|
||||||
description="Navigate from a trace span to the selected data source's logs."
|
description="Navigate from a trace span to the selected data source's logs."
|
||||||
suffix={`${options.type}/#trace-to-logs`}
|
suffix={suffix}
|
||||||
feature="trace to logs"
|
feature="trace to logs"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -202,13 +202,16 @@ export function TraceToMetricsSettings({ options, onOptionsChange }: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const TraceToMetricsSection = ({ options, onOptionsChange }: DataSourcePluginOptionsEditorProps) => {
|
export const TraceToMetricsSection = ({ options, onOptionsChange }: DataSourcePluginOptionsEditorProps) => {
|
||||||
|
let suffix = options.type;
|
||||||
|
suffix += options.type === 'tempo' ? '/configure-tempo-data-source/#trace-to-metrics' : '/#trace-to-metrics';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ConfigSection
|
<ConfigSection
|
||||||
title="Trace to metrics"
|
title="Trace to metrics"
|
||||||
description={
|
description={
|
||||||
<ConfigDescriptionLink
|
<ConfigDescriptionLink
|
||||||
description="Navigate from a trace span to the selected data source's metrics."
|
description="Navigate from a trace span to the selected data source's metrics."
|
||||||
suffix={`${options.type}/#trace-to-metrics`}
|
suffix={suffix}
|
||||||
feature="trace to metrics"
|
feature="trace to metrics"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,13 +79,16 @@ export default function SpanBarSettings({ options, onOptionsChange }: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SpanBarSection = ({ options, onOptionsChange }: DataSourcePluginOptionsEditorProps) => {
|
export const SpanBarSection = ({ options, onOptionsChange }: DataSourcePluginOptionsEditorProps) => {
|
||||||
|
let suffix = options.type;
|
||||||
|
suffix += options.type === 'tempo' ? '/configure-tempo-data-source/#span-bar' : '/#span-bar';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ConfigSubSection
|
<ConfigSubSection
|
||||||
title="Span bar"
|
title="Span bar"
|
||||||
description={
|
description={
|
||||||
<ConfigDescriptionLink
|
<ConfigDescriptionLink
|
||||||
description="Add additional info next to the service and operation on a span bar row in the trace view."
|
description="Add additional info next to the service and operation on a span bar row in the trace view."
|
||||||
suffix={`${options.type}/#span-bar`}
|
suffix={suffix}
|
||||||
feature="the span bar"
|
feature="the span bar"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ export const ConfigEditor = ({ options, onOptionsChange }: Props) => {
|
||||||
description={
|
description={
|
||||||
<ConfigDescriptionLink
|
<ConfigDescriptionLink
|
||||||
description="Select a Prometheus data source that contains the service graph data."
|
description="Select a Prometheus data source that contains the service graph data."
|
||||||
suffix="tempo/#service-graph"
|
suffix="tempo/configure-tempo-data-source/#service-graph"
|
||||||
feature="the service graph"
|
feature="the service graph"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
@ -98,7 +98,7 @@ export const ConfigEditor = ({ options, onOptionsChange }: Props) => {
|
||||||
description={
|
description={
|
||||||
<ConfigDescriptionLink
|
<ConfigDescriptionLink
|
||||||
description="Modify how traces are searched."
|
description="Modify how traces are searched."
|
||||||
suffix="tempo/#tempo-search"
|
suffix="tempo/configure-tempo-data-source/#tempo-search"
|
||||||
feature="Tempo search"
|
feature="Tempo search"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
@ -112,7 +112,7 @@ export const ConfigEditor = ({ options, onOptionsChange }: Props) => {
|
||||||
description={
|
description={
|
||||||
<ConfigDescriptionLink
|
<ConfigDescriptionLink
|
||||||
description="Select a Loki data source to search for traces. Derived fields must be configured in the Loki data source."
|
description="Select a Loki data source to search for traces. Derived fields must be configured in the Loki data source."
|
||||||
suffix="tempo/#loki-search"
|
suffix="tempo/configure-tempo-data-source/#loki-search"
|
||||||
feature="Loki search"
|
feature="Loki search"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
@ -126,7 +126,7 @@ export const ConfigEditor = ({ options, onOptionsChange }: Props) => {
|
||||||
description={
|
description={
|
||||||
<ConfigDescriptionLink
|
<ConfigDescriptionLink
|
||||||
description="Modify how TraceID queries are run."
|
description="Modify how TraceID queries are run."
|
||||||
suffix="tempo/#traceid-query"
|
suffix="tempo/configure-tempo-data-source/#traceid-query"
|
||||||
feature="the TraceID query"
|
feature="the TraceID query"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue