Docs: Example of provisioning InfluxDB v2 datasource (#27045)

* Docs: Example of provisioning InfluxDB v2 datasource

* Apply suggestions from code review

Suggested improvements

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
This commit is contained in:
Wojciech Sromek 2020-08-18 17:08:09 +02:00 committed by GitHub
parent dd0b0fe0b1
commit 918fb4d02a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,11 +278,12 @@ You can now configure data sources using config files with Grafana's provisionin
Here are some provisioning examples for this data source.
### InfluxDB 1.x example
```yaml
apiVersion: 1
datasources:
- name: InfluxDB
- name: InfluxDB_v1
type: influxdb
access: proxy
database: site
@ -292,3 +293,21 @@ datasources:
jsonData:
httpMode: GET
```
### InfluxDB 2.x example
```yaml
apiVersion: 1
datasources:
- name: InfluxDB_v2
type: influxdb
access: proxy
url: http://localhost:8086
secureJsonData:
token: token
jsonData:
version: Flux
organization: organization
defaultBucket: bucket
tlsSkipVerify: true
```