InfluxDB: deprecate direct browser access in data source (#35105)

* influxdb: deperacate direct browser-access

* better docs-formatting

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
pull/35115/head
Gábor Farkas 4 years ago committed by GitHub
parent 5d41e83896
commit 89fc92947c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docs/sources/datasources/influxdb/_index.md
  2. 8
      public/app/plugins/datasource/influxdb/components/ConfigEditor.tsx

@ -33,6 +33,7 @@ Name | Description
`Default` | Default data source means that it will be pre-selected for new panels.
`URL` | The HTTP protocol, IP address and port of your InfluxDB API. InfluxDB API port is by default 8086.
`Access` | Server (default) = URL needs to be accessible from the Grafana backend/server, Browser = URL needs to be accessible from the browser.
**Note**: Browser access is deprecated and will be removed in a future release.
`Whitelisted Cookies`| Cookies that will be forwarded to the data source. All other cookies will be deleted.
`Database` | The ID of the bucket you want to query from, copied from the [Buckets page](https://docs.influxdata.com/influxdb/v2.0/organizations/buckets/view-buckets/) of the InfluxDB UI.
`User` | The username you use to sign into InfluxDB.

@ -9,7 +9,7 @@ import {
onUpdateDatasourceSecureJsonDataOption,
updateDatasourcePluginJsonDataOption,
} from '@grafana/data';
import { DataSourceHttpSettings, InfoBox, InlineField, InlineFormLabel, LegacyForms } from '@grafana/ui';
import { Alert, DataSourceHttpSettings, InfoBox, InlineField, InlineFormLabel, LegacyForms } from '@grafana/ui';
const { Select, Input, SecretFormField } = LegacyForms;
import { InfluxOptions, InfluxSecureJsonData, InfluxVersion } from '../types';
@ -279,6 +279,12 @@ export class ConfigEditor extends PureComponent<Props, State> {
</InfoBox>
)}
{options.access === 'direct' && (
<Alert title="Deprecation Notice" severity="warning">
Browser access mode in the InfluxDB datasource is deprecated and will be removed in a future release.
</Alert>
)}
<DataSourceHttpSettings
showAccessOptions={true}
dataSourceConfig={options}

Loading…
Cancel
Save