mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki/Elasticsearch config: Add DataSourceDescription component (#71206)
* Loki config: add data source description component * Elastic config: add data source description component
This commit is contained in:
parent
56f52dc97e
commit
92c94710cd
@ -2,7 +2,7 @@ import React, { useEffect, useRef } from 'react';
|
||||
|
||||
import { SIGV4ConnectionConfig } from '@grafana/aws-sdk';
|
||||
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
||||
import { ConfigSection } from '@grafana/experimental';
|
||||
import { ConfigSection, DataSourceDescription } from '@grafana/experimental';
|
||||
import { Alert, DataSourceHttpSettings } from '@grafana/ui';
|
||||
import { Divider } from 'app/core/components/Divider';
|
||||
import { config } from 'app/core/config';
|
||||
@ -38,6 +38,11 @@ export const ConfigEditor = (props: Props) => {
|
||||
Browser access mode in the Elasticsearch datasource is no longer available. Switch to server access mode.
|
||||
</Alert>
|
||||
)}
|
||||
<DataSourceDescription
|
||||
dataSourceName="Elasticsearch"
|
||||
docsLink="https://grafana.com/docs/grafana/latest/datasources/elasticsearch"
|
||||
hasRequiredFields={false}
|
||||
/>
|
||||
|
||||
<Divider />
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React, { useCallback } from 'react';
|
||||
|
||||
import { DataSourcePluginOptionsEditorProps, DataSourceSettings } from '@grafana/data';
|
||||
import { ConfigSection } from '@grafana/experimental';
|
||||
import { ConfigSection, DataSourceDescription } from '@grafana/experimental';
|
||||
import { config, reportInteraction } from '@grafana/runtime';
|
||||
import { DataSourceHttpSettings } from '@grafana/ui';
|
||||
import { Divider } from 'app/core/components/Divider';
|
||||
@ -43,6 +43,12 @@ export const ConfigEditor = (props: Props) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<DataSourceDescription
|
||||
dataSourceName="Loki"
|
||||
docsLink="https://grafana.com/docs/grafana/latest/datasources/loki"
|
||||
hasRequiredFields={false}
|
||||
/>
|
||||
|
||||
<Divider />
|
||||
|
||||
<DataSourceHttpSettings
|
||||
|
Loading…
Reference in New Issue
Block a user