apiVersion: 1

datasources:
  - name: InfluxDB2
    type: influxdb
    access: proxy
    url: http://influxdb2:8086
    basicAuth: true
    isDefault: true
    basicAuthUser: $GF_SECURITY_ADMIN_USER
    jsonData:
      version: Flux
      organization: $DOCKER_INFLUXDB_INIT_ORG
      defaultBucket: $DOCKER_INFLUXDB_INIT_BUCKET
    secureJsonData:
      token: $DOCKER_INFLUXDB_INIT_ADMIN_TOKEN
      basicAuthPassword: $GF_SECURITY_ADMIN_PASSWORD
