FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

grafana_data_source

The data source resource allows a data source to created on a Grafana server.

Example Usage

The required arguments for this resource vary depending on the type of data source selected (via the type argument). The following example is for InfluxDB. See Grafana’s Data Sources Guides for more details on the supported data source types and the arguments they use.

resource "grafana_data_source" "metrics" {
  type          = "influxdb"
  name          = "myapp-metrics"
  url           = "http://influxdb.example.net:8086/"
  username      = "myapp"
  password      = "foobarbaz"
  database_name = "${influxdb_database.metrics.name}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The resource exports the following attributes:


See the source of this document at Terraform.io