mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
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:
parent
dd0b0fe0b1
commit
918fb4d02a
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user