The script dashboard.sh is a bash utility for exporting and
importing Google Cloud Monitoring dashboard.
Export a dashboard to a json file
Args:
- action: export
- dashboard_id
- project
- output file
./dashboard.sh export 11449921252968550000 test-project kpi.json
Import a dashboard from a json file
Args:
- action: import
- project_id
- input_file
./dashboard.sh import agent-analysis kpa.json
Required utilities
A Makefile is provided. After making changes, run make to
perform sanity checks.