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/dm at main · johnbryan/monitoring-dashboard-samples

Expand file tree

/

dm

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

dm

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
dashboard.yaml
dashboard.yaml
 
 
monitoring-dashboard.py
monitoring-dashboard.py
 
 
options.yaml
options.yaml
 
 

README.md

Outline

Using Google Cloud Deployment Manager to deploy monitoring dashboards

Currently, the Google Cloud Deployment Manager does not support deploying Cloud Monitoring dashboards natively. However, we can create a custom type provider with the dashboard API endpoint to get around it.

HowTo

Add custom dashboard type

gcloud beta deployment-manager type-providers create monitoring-dashboardv1type \
  --api-options-file=options.yaml \
  --descriptor-url='https://monitoring.googleapis.com/$discovery/rest?version=v1'

Look up the new type

gcloud beta deployment-manager type-providers describe monitoring-dashboardv1type

Create dashboard

Replace [PROJECT-ID] in dashboard.yaml with your GCP project id.

Replace [JSON-FILE] in dashboard.yaml with your json file.

Run the following command:

gcloud deployment-manager deployments create example-dashboard --config dashboard.yaml

Check dashboard

https://console.cloud.google.com/monitoring/dashboards

Delete dashboard

gcloud deployment-manager deployments delete example-dashboard

Delete type provider

gcloud beta deployment-manager type-providers delete monitoring-dashboardv1type

Resources:

  • Adding an API as a Type Provider
  • Calling a Type Provider in a Configuration
  • REST Resource: projects.dashboards
  • Using Google Cloud Deployment Manager shared types
  • Additional deployment manager 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.