Stay organized with collections
Save and categorize content based on your preferences.
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
:
Guide me
-
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
.
Go to project selector
-
Make sure that billing is enabled for your Google Cloud project
.
-
Enable the Compute Engine and Cloud Monitoring APIs.
Enable the APIs
-
In the Google Cloud console, on the project selector page,
select or
create a Google Cloud project
.
Go to project selector
-
Make sure that billing is enabled for your Google Cloud project
.
-
Enable the Compute Engine and Cloud Monitoring APIs.
Enable the 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:
Go to
VM instances
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:
Go to
VM instances
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:
Go to
Dashboards
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.
Go to VM instances
-
Select the checkbox for
the instance that you want to delete.
-
To delete the instance, click
more_vert
More actions
, click
Delete
,
and then follow the instructions.
Delete the dashboard you created:
-
In the Google Cloud console, go to the
Dashboards
page:
Go to
Dashboards
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
.
Except as otherwise noted, the content of this page is licensed under the
Creative Commons Attribution 4.0 License
, and code samples are licensed under the
Apache 2.0 License
. For details, see the
Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-23 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]