GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — monitoring-dashboard-samples/terraform at main · johnbryan/monitoring-dashboard-samples

Expand file tree

/

terraform

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

terraform

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
agents
agents
 
 
README.md
README.md
 
 
main.tf
main.tf
 
 

README.md

Outline

Using Terraform to deploy monitoring dashboards

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.

Usage

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]'

Inputs

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

Outputs

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

Resources:

  • Terraform - Getting Started with the Google Provide
  • Terraform - Google monitoring dashboard
  • Use the Dashboard API to build your own monitoring dashboard
  • REST Resource: projects.dashboards
  • Getting started with Terraform on Google Cloud Platform
  • Additional Terraform examples
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.