FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

grafana_dashboard

The dashboard resource allows a dashboard to created on a Grafana server.

Example Usage

resource "grafana_dashboard" "metrics" {
  config_json = "${file("grafana-dashboard.json")}"
}

Dashboards can be exported from Grafana’s web UI in JSON format and provided via the config_json argument.

The exported JSON will include references to Grafana data sources, but the data source configuration is not exported in this way. In order to fully manage a dashboard with Terraform, necessary data sources can be created using the grafana_data_source resource. In order to ensure that a data source is created before a dashboard that refers to it, use the depends_on meta-parameter:

    depends_on = ["grafana_data_source.metrics"]

Argument Reference

The following arguments are supported:

Attributes Reference

The resource exports the following attributes:


See the source of this document at Terraform.io