View and customize VM dashboards
Learn how to view and customize dashboards for your Compute Engine virtual machine (VM) instances by completing the following tasks:
- Create a Compute Engine VM instance.
- View the default dashboard.
- Customize the default dashboard.
- Clean up.
To follow step-by-step guidance for this task directly in the Google Cloud console, click Guide me:
Before you begin
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Compute Engine and Cloud Monitoring APIs.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Compute Engine and Cloud Monitoring APIs.
Create a VM instance
Create a VM instance if you don't already have one:
-
In the Google Cloud console, go to the VM instances page:
If you use the search bar to find this page, then select the result whose subheading is Compute Engine.
Create a VM by clicking Create instance.
- In the
Name field, enter a descriptive name. - In the
Machine type field, select e2-small. - In the
Boot disk section, keep the default setting of Debian GNU/Linux. - Click
Create .
View the VM's observability dashboard
The observability dashboard displays utilization metrics, throughput metrics, and data about logs:
-
In the Google Cloud console, go to the VM instances page:
If you use the search bar to find this page, then select the result whose subheading is Compute Engine.
- In the VM instances page, click the instance name.
Select the Observability tab.
If you created a VM, then it might take a few minutes before the charts display data.
Explore the charts on the Observability tab.
Create a custom observability dashboard
To create an editable copy of the observability dashboard, do the following:
- In the Observability toolbar, click Save as dashboard.
- Click Submit.
Click View in Monitoring.
To add a widget, click Add widget and complete the dialog. For example, to view your logs with your metric data, click Add widget, select Logs, and then click Apply.
To remove or modify a widget, use the options in the toolbar of the widget.
To reposition or resize a widget, use your pointer.
If you modified the copy, then click Save.
In the navigation pane, select Dashboards.
In the All Dashboards pane, you see your new dashboard listed with the type of Custom.
You have successfully customized the observability dashboard for a Compute Engine VM instance. You can use the same procedure to customize dashboards for many other Google Cloud resources.
View VM dashboards created by Monitoring
Cloud Monitoring creates and manages several dashboards that display metrics for your VM instances. You can access these dashboards from the Dashboards page in Cloud Monitoring:
-
In the Google Cloud console, go to the Dashboards page:
If you use the search bar to find this page, then select the result whose subheading is Monitoring.
To view instance-specific dashboards, in the All Dashboards pane, click VM Instances.
The VM instances page lists your VMs and contains links to VM-specific dashboards. These dashboards are created and managed by Cloud Monitoring.
To view the metrics for all of your VMs, in the navigation pane, select Dashboards, and then select the GCE VM Instance Monitoring dashboard.
To create an editable copy of this dashboard, click Copy Dashboard.
Clean up
To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.
If you created a new project and you no longer need the project, then delete the project.
If you used an existing project, then do the following:
If you created a VM, then delete it:
- In the Google Cloud console, go to the VM instances page.
- Select the checkbox for the instance that you want to delete.
- To delete the instance, click More actions, click Delete, and then follow the instructions.
Delete the dashboard you created:
-
In the Google Cloud console, go to the Dashboards page:
If you use the search bar to find this page, then select the result whose subheading is Monitoring.
- Find the dashboard that you created, and then click
Delete .
-
What's next
To learn how to install the Ops Agent and collect metrics from an Apache server, see the quickstart Collect Apache metrics with the Ops Agent.
To learn how to test whether a URL is responding to requests and to simulate a failure, see the quickstart Get notified if your application stops responding.
To learn about testing your applications, see Synthetic monitoring overview.
To learn about the Ops Agent, see Ops Agent overview.
To learn about creating custom dashboards, see Manage custom dashboards.