Docs: InfluxDB_V2 datasource: adding an example on how to add InfluxQL as a datasource (#29490)
This commit is contained in:
@@ -286,12 +286,12 @@ datasources:
|
|||||||
httpMode: GET
|
httpMode: GET
|
||||||
```
|
```
|
||||||
|
|
||||||
### InfluxDB 2.x example
|
### InfluxDB 2.x for Flux example
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
|
|
||||||
datasources:
|
datasources:
|
||||||
- name: InfluxDB_v2
|
- name: InfluxDB_v2_Flux
|
||||||
type: influxdb
|
type: influxdb
|
||||||
access: proxy
|
access: proxy
|
||||||
url: http://localhost:8086
|
url: http://localhost:8086
|
||||||
@@ -303,3 +303,22 @@ datasources:
|
|||||||
defaultBucket: bucket
|
defaultBucket: bucket
|
||||||
tlsSkipVerify: true
|
tlsSkipVerify: true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### InfluxDB 2.x for InfluxQl example
|
||||||
|
```yaml
|
||||||
|
apiVersion: 1
|
||||||
|
|
||||||
|
datasources:
|
||||||
|
- name: InfluxDB_v2_InfluxQL
|
||||||
|
type: influxdb
|
||||||
|
access: proxy
|
||||||
|
url: http://localhost:8086
|
||||||
|
# This database should be mapped to a bucket
|
||||||
|
database: site
|
||||||
|
jsonData:
|
||||||
|
httpMode: GET
|
||||||
|
httpHeaderName1: 'Authorization'
|
||||||
|
secureJsonData:
|
||||||
|
httpHeaderValue1: 'Token <token>'
|
||||||
|
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user