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.
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-29。"],[],[],null,["# Quickstart: View and customize VM dashboards\n\nView and customize VM dashboards\n================================\n\nLearn how to view and customize dashboards for your\nCompute Engine virtual machine (VM) instances\nby completing the following tasks:\n\n1. Create a Compute Engine VM instance.\n2. View the default dashboard.\n3. Customize the default dashboard.\n4. Clean up.\n\n*** ** * ** ***\n\nTo follow step-by-step guidance for this task directly in the\nGoogle Cloud console, click **Guide me**:\n\n[Guide me](https://console.cloud.google.com/freetrial?redirectPath=/?walkthrough_id=monitoring--monitoring-quickstart-ootb-dashboards)\n\n*** ** * ** ***\n\nBefore you begin\n----------------\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n\n\n Enable the Compute Engine and Cloud Monitoring APIs.\n\n\n [Enable the APIs](https://console.cloud.google.com/flows/enableapi?apiid=compute.googleapis.com,monitoring.googleapis.com)\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n\n\n Enable the Compute Engine and Cloud Monitoring APIs.\n\n\n [Enable the APIs](https://console.cloud.google.com/flows/enableapi?apiid=compute.googleapis.com,monitoring.googleapis.com)\n\nCreate a VM instance\n--------------------\n\nCreate a VM instance if you don't already have one:\n\n1. In the Google Cloud console, go to the **VM instances** page:\n\n [Go to **VM instances**](https://console.cloud.google.com/compute/instances)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Compute Engine**.\n2. Create a VM by clicking **Create instance**. Configure your instance by using the options in the navigation menu.\n3. In the **Machine configuration** option, do the following:\n 1. In the **Name** field, enter a descriptive name.\n 2. In the **Machine type** preset drop-down, select **Shared-core \\\u003e e2-small**.\n4. Verify that the **OS and storage** option displays **Debian GNU/Linux** . If not, click the **OS and storage** option and click **Change** . In the **Boot disk** dialog, set **Version** to **Debian GNU/Linux**.\n5. Click **Create**.\n\nView the VM's observability dashboard\n-------------------------------------\n\nThe observability dashboard displays utilization metrics, throughput\nmetrics, and data about logs:\n\n1. In the Google Cloud console, go to the **VM instances** page:\n\n [Go to **VM instances**](https://console.cloud.google.com/compute/instances)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Compute Engine**.\n2. In the **VM instances** page, click the instance name.\n3. Select the **Observability** tab.\n\n If you created a VM, then it might take a few minutes before the charts\n display data.\n4. Explore the charts on the **Observability** tab.\n\nCreate a custom observability dashboard\n---------------------------------------\n\nTo create an editable copy of the observability dashboard, do the following:\n\n1. In the **Observability** toolbar, click **Save as dashboard**.\n2. Click **Submit**.\n3. Click **View in Monitoring**.\n\n You are now viewing a dashboard which you can customize. This dashboard\n is managed by Cloud Monitoring.\n\n To add a widget, click **Add widget** and complete the dialog.\n For example, to view your logs with your metric data, click **Add widget** ,\n select **Logs** , and then click **Apply**.\n\n To remove or modify a widget, use the options in the toolbar of the widget.\n\n To reposition or resize a widget, use your pointer.\n4. If you modified the copy, then click **Save**.\n\n5. In the navigation pane, select **Dashboards**.\n\n In the **My Dashboards** pane, you see your new dashboard listed.\n\nYou have successfully customized the observability dashboard for a\nCompute Engine VM instance. You can use the same procedure to customize\ndashboards for many other Google Cloud resources.\n\nView VM dashboards created by Monitoring\n----------------------------------------\n\nCloud Monitoring creates and manages several dashboards that display\nmetrics for your VM instances. You can access these dashboards from the\n**Dashboards** page in Cloud Monitoring:\n\n1. In the Google Cloud console, go to the **Dashboards** page:\n\n [Go to **Dashboards**](https://console.cloud.google.com/monitoring/dashboards)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Monitoring**.\n2. To view instance-specific dashboards, in the **My Dashboards** pane,\n click **VM Instances**.\n\n The **VM Instances** page lists your VMs and contains links to VM-specific\n dashboards. These dashboards are created and managed by Cloud Monitoring.\n3. To view the metrics for all of your VMs, in the navigation pane,\n select **Dashboards** , and then select the\n **GCE VM Instance Monitoring** dashboard.\n\n To create an editable copy of this dashboard, click **Copy Dashboard**.\n\nClean up\n--------\n\n\nTo avoid incurring charges to your Google Cloud account for\nthe resources used on this page, follow these steps.\n\nIf you created a new project and you no longer need the project, then\n[delete the project](https://console.cloud.google.com/cloud-resource-manager).\n\nIf you used an existing project, then do the following:\n\n1. If you created a VM, then delete it:\n\n 1. In the Google Cloud console, go to the **VM instances** page.\n\n [Go to VM instances](https://console.cloud.google.com/compute/instances)\n 2. Select the checkbox for the instance that you want to delete.\n 3. To delete the instance, click more_vert **More actions** , click **Delete**, and then follow the instructions.\n2. Delete the dashboard you created:\n\n 1. In the Google Cloud console, go to the **Dashboards** page:\n\n [Go to **Dashboards**](https://console.cloud.google.com/monitoring/dashboards)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Monitoring**.\n 2. Find the dashboard that you created, and then click **Delete**.\n\nWhat's next\n-----------\n\n- To learn how to install the Ops Agent and collect metrics from an\n Apache server, see the quickstart\n [Collect Apache metrics with the Ops Agent](/monitoring/monitor-compute-engine-virtual-machine).\n\n- To learn how to test whether a URL is responding to requests and to\n simulate a failure, see the quickstart\n [Get notified if your application stops responding](/monitoring/monitoring-uptime).\n\n- To learn about testing your applications, see\n [Synthetic monitoring overview](/monitoring/uptime-checks/introduction).\n\n- To learn about the Ops Agent, see\n [Ops Agent overview](/monitoring/agent/ops-agent).\n\n- To learn about creating custom dashboards,\n see [Manage custom dashboards](/monitoring/charts/dashboards)."]]