mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tracing: Use new DataSourceDescription component (#69443)
Use new DataSourceDescription component
This commit is contained in:
parent
1e75c9c514
commit
5c45b8724b
@ -2,7 +2,7 @@ import { css } from '@emotion/css';
|
||||
import React from 'react';
|
||||
|
||||
import { DataSourcePluginOptionsEditorProps, GrafanaTheme2 } from '@grafana/data';
|
||||
import { ConfigSection } from '@grafana/experimental';
|
||||
import { ConfigSection, DataSourceDescription } from '@grafana/experimental';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { DataSourceHttpSettings, useStyles2 } from '@grafana/ui';
|
||||
import { Divider } from 'app/core/components/Divider';
|
||||
@ -18,6 +18,14 @@ export const ConfigEditor = ({ options, onOptionsChange }: Props) => {
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<DataSourceDescription
|
||||
dataSourceName="Jaeger"
|
||||
docsLink="https://grafana.com/docs/grafana/latest/datasources/jaeger"
|
||||
hasRequiredFields={false}
|
||||
/>
|
||||
|
||||
<Divider />
|
||||
|
||||
<DataSourceHttpSettings
|
||||
defaultUrl="http://localhost:16686"
|
||||
dataSourceConfig={options}
|
||||
@ -55,6 +63,6 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
container: css`
|
||||
label: container;
|
||||
margin-bottom: ${theme.spacing(2)};
|
||||
max-width: '578px';
|
||||
max-width: 900px;
|
||||
`,
|
||||
});
|
||||
|
@ -2,7 +2,7 @@ import { css } from '@emotion/css';
|
||||
import React from 'react';
|
||||
|
||||
import { DataSourcePluginOptionsEditorProps, GrafanaTheme2 } from '@grafana/data';
|
||||
import { ConfigSection, ConfigSubSection } from '@grafana/experimental';
|
||||
import { ConfigSection, ConfigSubSection, DataSourceDescription } from '@grafana/experimental';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { DataSourceHttpSettings, useStyles2 } from '@grafana/ui';
|
||||
import { ConfigDescriptionLink } from 'app/core/components/ConfigDescriptionLink';
|
||||
@ -25,6 +25,14 @@ export const ConfigEditor = ({ options, onOptionsChange }: Props) => {
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<DataSourceDescription
|
||||
dataSourceName="Tempo"
|
||||
docsLink="https://grafana.com/docs/grafana/latest/datasources/tempo"
|
||||
hasRequiredFields={false}
|
||||
/>
|
||||
|
||||
<Divider />
|
||||
|
||||
<DataSourceHttpSettings
|
||||
defaultUrl="http://tempo"
|
||||
dataSourceConfig={options}
|
||||
@ -129,6 +137,6 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
container: css`
|
||||
label: container;
|
||||
margin-bottom: ${theme.spacing(2)};
|
||||
max-width: '578px';
|
||||
max-width: 900px;
|
||||
`,
|
||||
});
|
||||
|
@ -2,7 +2,7 @@ import { css } from '@emotion/css';
|
||||
import React from 'react';
|
||||
|
||||
import { DataSourcePluginOptionsEditorProps, GrafanaTheme2 } from '@grafana/data';
|
||||
import { ConfigSection } from '@grafana/experimental';
|
||||
import { ConfigSection, DataSourceDescription } from '@grafana/experimental';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { DataSourceHttpSettings, useStyles2 } from '@grafana/ui';
|
||||
import { Divider } from 'app/core/components/Divider';
|
||||
@ -18,6 +18,14 @@ export const ConfigEditor = ({ options, onOptionsChange }: Props) => {
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<DataSourceDescription
|
||||
dataSourceName="Zipkin"
|
||||
docsLink="https://grafana.com/docs/grafana/latest/datasources/zipkin"
|
||||
hasRequiredFields={false}
|
||||
/>
|
||||
|
||||
<Divider />
|
||||
|
||||
<DataSourceHttpSettings
|
||||
defaultUrl="http://localhost:9411"
|
||||
dataSourceConfig={options}
|
||||
@ -55,6 +63,6 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
container: css`
|
||||
label: container;
|
||||
margin-bottom: ${theme.spacing(2)};
|
||||
max-width: '578px';
|
||||
max-width: 900px;
|
||||
`,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user