Setting the database for this datasource does not deny access to other databases. The InfluxDB query
syntax allows switching the database in the query. For example:
- SHOW MEASUREMENTS ON _internal or SELECT * FROM "_internal".."database" LIMIT 10
+ SHOW MEASUREMENTS ON _internal or
+ SELECT * FROM "_internal".."database" LIMIT 10
To support data isolation and security, make sure appropriate permissions are configured in InfluxDB.
diff --git a/public/app/plugins/datasource/influxdb/components/__snapshots__/ConfigEditor.test.tsx.snap b/public/app/plugins/datasource/influxdb/components/__snapshots__/ConfigEditor.test.tsx.snap
index 4d560e5aa12..fd4dce305c6 100644
--- a/public/app/plugins/datasource/influxdb/components/__snapshots__/ConfigEditor.test.tsx.snap
+++ b/public/app/plugins/datasource/influxdb/components/__snapshots__/ConfigEditor.test.tsx.snap
@@ -245,7 +245,7 @@ exports[`Render should disable basic auth password input 1`] = `
SHOW MEASUREMENTS ON _internal
- or
+ or
SELECT * FROM "_internal".."database" LIMIT 10
@@ -533,7 +533,7 @@ exports[`Render should hide basic auth fields when switch off 1`] = `
SHOW MEASUREMENTS ON _internal
- or
+ or
SELECT * FROM "_internal".."database" LIMIT 10
@@ -821,7 +821,7 @@ exports[`Render should hide white listed cookies input when browser access chose
SHOW MEASUREMENTS ON _internal
- or
+ or
SELECT * FROM "_internal".."database" LIMIT 10
@@ -1109,7 +1109,7 @@ exports[`Render should render component 1`] = `
SHOW MEASUREMENTS ON _internal
- or
+ or
SELECT * FROM "_internal".."database" LIMIT 10
diff --git a/public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx b/public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx
index fbbb59018fb..fb6ba792d82 100644
--- a/public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx
+++ b/public/app/plugins/datasource/prometheus/components/PromQueryEditor.tsx
@@ -137,7 +137,7 @@ export class PromQueryEditor extends PureComponent {
<>
An additional lower limit for the step parameter of the Prometheus query and for the{' '}
$__interval and $__rate_interval variables. The limit is absolute and not
- modified by the "Resolution" setting.
+ modified by the "Resolution" setting.
>
}
>
diff --git a/public/app/plugins/datasource/testdata/QueryEditor.tsx b/public/app/plugins/datasource/testdata/QueryEditor.tsx
index e589cdcc812..f3fd3f889ec 100644
--- a/public/app/plugins/datasource/testdata/QueryEditor.tsx
+++ b/public/app/plugins/datasource/testdata/QueryEditor.tsx
@@ -168,7 +168,7 @@ export const QueryEditor = ({ query, datasource, onChange, onRunQuery }: Props)
{`{ key = "value", key2 = "value" }`}
- key="value", key2="value"
+ key="value", key2="value"
key=value, key2=value