Commit 05396ef7 by Rami Committed by GitHub

Docs: InfluxDB_V2 datasource: adding an example on how to add InfluxQL as a datasource (#29490)

parent a54e0ff7
......@@ -286,12 +286,12 @@ datasources:
httpMode: GET
```
### InfluxDB 2.x example
### InfluxDB 2.x for Flux example
```yaml
apiVersion: 1
datasources:
- name: InfluxDB_v2
- name: InfluxDB_v2_Flux
type: influxdb
access: proxy
url: http://localhost:8086
......@@ -303,3 +303,22 @@ datasources:
defaultBucket: bucket
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>'
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment