[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/compute/docs/vm-extensions/monitor-vm-extensions [Back]  [Original]

Monitor VM extensions  |  Compute Engine  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Monitor VM extensions Stay organized with collections Save and categorize content based on your preferences.

Monitoring the health and performance of your VM extensions helps you manage resource usage and resolve issues across your fleet of Compute Engine instances. You can use Cloud Monitoring dashboards to visualize resource usage such as CPU or memory consumption, and configure alerting policies to receive notifications when an event, such as an installation failure, occurs.

This document describes how to monitor VM extensions managed by VM Extension Manager on your Compute Engine instances by using Cloud Monitoring, and helps you do the following:

Before you begin

Before you begin

Before monitoring your extensions, ensure that you have completed the following:

Required IAM roles

To get the permissions that you need to monitor metrics and create dashboards, ask your administrator to grant you the following IAM roles on your project.

To get the permissions that you need to monitor metrics and manage dashboards, ask your administrator to grant you the following IAM roles:

For more information about granting roles, see Manage access to projects, folders, and organizations.

These predefined roles contain the permissions required to monitor metrics and manage dashboards. To see the exact permissions that are required, expand the Required permissions section:

Required permissions

The following permissions are required to monitor metrics and manage dashboards:

You might also be able to get these permissions with custom roles or other predefined roles.

For more information about granting roles, see Manage access to projects, folders, and organizations.

You might also be able to get the required permissions through custom roles or other predefined roles.

Available metrics for VM extensions

The following metrics are available for monitoring your VM extensions in Monitoring:

Metric name Metric type Description
VM Extension Enforcement Status compute.googleapis.com/vm_extensions/extension/enforcement_status The enforcement status of a Compute Engine VM extension. Labels include extension_name and status.

For a list of extension names, see supported extensions.

Possible values for status are the following:

  • ENFORCEMENT_STATE_UNSPECIFIED
  • INSTALLING
  • INSTALL_FAILED
  • INSTALLED
  • ROLLING_BACK
  • ROLLBACK_FAILED
  • ROLLED_BACK
  • INCOMPATIBLE
  • REMOVING
  • SERVICE_DISABLED
  • APPLYING_CONFIG
VM Extension Health Status compute.googleapis.com/vm_extensions/extension/health_status The health status of a VM extension. Labels include extension_name and status.

For a list of extension names, see supported extensions.

Possible values for status are the following:
  • HEALTH_STATUS_UNSPECIFIED
  • STARTING
  • RUNNING
  • STOPPING
  • STOPPED
  • CRASHED
VM Extension CPU Max Usage compute.googleapis.com/vm_extensions/extension/cpu/max_usage Max CPU time used by the VM extension expressed as a percentage.
VM Extension Memory Max Used Bytes compute.googleapis.com/vm_extensions/extension/memory/used_bytes Max memory usage of the VM extension in bytes.

Build custom monitoring dashboards

You can build Monitoring dashboards with the most relevant VM extension charts for your use case. To add a chart to a dashboard, follow these steps:

  1. In the Google Cloud console, select Monitoring:

    Go to Monitoring

  2. In the navigation pane, select Dashboards.
  3. Click Create dashboard.
  4. Click Add widget.
  5. In the Add widget window, for Data, select Metric.
  6. To select the metric, expand the Select a metric menu and then do the following:
    1. For the Active resources, select VM Instance.
    2. For the Metric category, select Vm_extensions.
    3. For the Metric, select a metric, such as VM Extension Health Status. For a list of available metrics, see Available metrics for monitoring VM extensions.
    4. Click Apply.

You can add as many charts to the dashboard as you like. For more information, see Create and manage custom dashboards.

Set up alerting policies

Monitoring lets you create alerts and receive notifications when a metric crosses a specified threshold. For example, you can receive a notification when an extension's health status changes to CRASHED.

  1. In the Google Cloud console, select Monitoring.

    Go to Monitoring

  2. In the navigation pane, select Alerting.
  3. Click Create policy.
  4. On the Create alerting policy page, define the alerting conditions and notification channels.
    1. To select the metric, expand the Select a metric menu and then do the following:
      1. For the Active resources, select VM Instance.
      2. For the Metric category, select Vm_extensions.
      3. For the Metric, select a metric, such as VM Extension Enforcement Status. For a list of available metrics, see Available metrics for monitoring VM extensions.
      4. Click Apply.
    2. Configure the trigger conditions, such as checking if the status label is INSTALL_FAILED.
  5. Follow the prompts to add notification channels and name the policy.
  6. Click Create policy.

For more information, see Create alerting policies.

What's next

Send feedback

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 2026-08-12 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-12 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page