mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Elasticsearch: Deprecate browser access mode (#29649)
* Elasticsearch: Show deprecation warning when selecting browser access mode * Docs: Show deprecation warning for Elasticsearch Browser access mode
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { DataSourceHttpSettings } from '@grafana/ui';
|
||||
import { Alert, DataSourceHttpSettings } from '@grafana/ui';
|
||||
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
||||
import { ElasticsearchOptions } from '../types';
|
||||
import { defaultMaxConcurrentShardRequests, ElasticDetails } from './ElasticDetails';
|
||||
@@ -30,6 +30,12 @@ export const ConfigEditor = (props: Props) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
{options.access === 'direct' && (
|
||||
<Alert title="Deprecation Notice" severity="warning">
|
||||
Browser access mode in the Elasticsearch datasource is deprecated and will be removed in a future release.
|
||||
</Alert>
|
||||
)}
|
||||
|
||||
<DataSourceHttpSettings
|
||||
defaultUrl={'http://localhost:9200'}
|
||||
dataSourceConfig={options}
|
||||
|
||||
Reference in New Issue
Block a user