mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docs: InfluxDB_V2 datasource: adding an example on how to add InfluxQL as a datasource (#29490)
This commit is contained in:
parent
a54e0ff79d
commit
05396ef7bd
@ -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>'
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user