Create an instance for Ops Agent monitoring and logging

TheOps Agent collects telemetrydata for instances that you can then use for troubleshooting and performancetuning.

Before you begin

Required roles

To get the permissions that you need to create an instance for Ops Agent monitoring and logging, ask your administrator to grant you the following IAM roles on the project:

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

You might also be able to get the required permissions throughcustom roles or otherpredefined roles.

Create an instance for the Ops Agent monitoring and logging

You can create an instance that's configured for Ops Agent monitoring andlogging only by using the Google Cloud console. This section briefly describes howto install the Ops Agent while creating an instance. For more information, alsoseeInstall Ops Agent during instance creation.

  1. In the Google Cloud console, go to theCreate an instance page.

    Go to Create an instance

    If prompted, select your project and clickContinue.

    TheCreate an instance page appears and displays theMachine configuration pane.

  2. In the navigation pane, clickObservability. TheObservability pane appears.

  3. In theOps Agent section, select theInstall the Ops Agent for Monitoring and Logging checkbox.

    Selecting this checkbox enables VM Manager in limited capability mode and it creates an OS policy assignment for installing Ops Agent on the instance.

  4. Optional: Specify other configuration options. For more information, seeConfiguration options during instance creation.

  5. To create and start the instance, clickCreate.

Install the Ops Agent on existing instances

You can use the Google Cloud console, the gcloud CLI, or an automationtool to install Ops Agent on a fleet of instances or on individual instances.For detailed instructions, seeInstall the Ops Agent.

Note: If you install the Ops Agent, then you might be charged for the metricsand logs that the agent sends to your Google Cloud project. For moreinformation, seeGoogle Cloud Observability pricing.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.