github.com/adrian-bl/terraform@v0.7.0-rc2.0.20160705220747-de0a34fc3517/website/source/docs/providers/grafana/index.html.markdown (about) 1 --- 2 layout: "grafana" 3 page_title: "Provider: Grafana" 4 sidebar_current: "docs-grafana-index" 5 description: |- 6 The Grafana provider configures data sources and dashboards in Grafana. 7 --- 8 9 # Grafana Provider 10 11 The Grafana provider configures data sources and dashboards in 12 [Grafana](http://grafana.org/), which is a web application for creating, 13 viewing and sharing metrics dashboards. 14 15 The provider configuration block accepts the following arguments: 16 17 * ``url`` - (Required) The root URL of a Grafana server. May alternatively be 18 set via the ``GRAFANA_URL`` environment variable. 19 20 * ``auth`` - (Required) The API token or username/password to use to 21 authenticate to the Grafana server. If username/password is used, they 22 are provided in a single string and separated by a colon. May alternatively 23 be set via the ``GRAFANA_AUTH`` environment variable. 24 25 Use the navigation to the left to read about the available resources. 26 27 ## Example Usage 28 29 ``` 30 provider "grafana" { 31 url = "http://grafana.example.com/" 32 auth = "1234abcd" 33 } 34 35 resource "grafana_dashboard" "metrics" { 36 config_json = "${file("grafana-dashboard.json")}" 37 } 38 ```