This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.
You can configure data sources using config files with Grafana’s provisioning system. You can read more about how it works and all the settings you can set for data sources on the provisioning docs page.
Here are some provisioning examples for this data source.
InfluxDB 1.x example
apiVersion: 1 datasources: - name: InfluxDB_v1 type: influxdb access: proxy database: site user: grafana password: grafana url: http://localhost:8086 jsonData: httpMode: GET
InfluxDB 2.x for Flux example
apiVersion: 1 datasources: - name: InfluxDB_v2_Flux type: influxdb access: proxy url: http://localhost:8086 secureJsonData: token: token jsonData: version: Flux organization: organization defaultBucket: bucket tlsSkipVerify: true
InfluxDB 2.x for InfluxQl example
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>'
Related Grafana resources
Getting started with Grafana 8
Grafana 8.0 is here! Join us for a live walkthrough on how to get started using Grafana 8 and the Grafana 8 user interface while showing how to set up monitoring for a web service that uses Prometheus and Loki to store metrics and logs.
Unify your data with Grafana plugins: Splunk, MongoDB, Datadog, and more
Show how Grafana can be used to take data from multiple different sources and unify it, without disrupting the investments that are working today.
Demo: Getting started with Grafana Enterprise and observability
Join the Grafana Labs team for a 30-minute demo of how to get started with the Grafana Stack, so you can go from zero to observability in just a few minutes.