mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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.
|
Here are some provisioning examples for this data source.
|
||||||
|
|
||||||
|
### InfluxDB 1.x example
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
|
|
||||||
datasources:
|
datasources:
|
||||||
- name: InfluxDB
|
- name: InfluxDB_v1
|
||||||
type: influxdb
|
type: influxdb
|
||||||
access: proxy
|
access: proxy
|
||||||
database: site
|
database: site
|
||||||
@ -292,3 +293,21 @@ datasources:
|
|||||||
jsonData:
|
jsonData:
|
||||||
httpMode: GET
|
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