This directory contains an example allow you to deploy Cloud Monitoring dashboards using Terraform. If it's your first time using Terraform on GCP, you can read the materials listed in the resource section below.
The dashboards directory contains JSON examples for monitoring dashboards.
Under this directory, run the following commands and provide proper arguments:
terraform init terraform plan terraform apply
You can also provide the arguments directly in the CLI, for example:
terraform apply -var 'dashboard_json_file=../dashboards/storage/cloud-storage-monitoring.json' \ -var 'project_id=[your_project_id]'
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| dashboard_json_file | The JSON file of the dashboard | string | n/a | yes |
| project_id | The ID of the project in which the dashboard will be created | string | n/a | yes |
| Name | Description |
|---|---|
| project_id | The project in which the dashboard was created |
| resource_id | The resource id for the dashboard |
| console_link | The destination console URL for the dashboard |