Create an instance for Ops Agent monitoring and logging

The Ops Agent collects telemetry data for instances that you can then use for troubleshooting and performance tuning.

Before you begin

  • If you haven't already, then set up authentication. Authentication is the process by which your identity is verified for access to Trusted Cloud by S3NS services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:

    Select the tab for how you plan to use the samples on this page:

    Console

    When you use the Trusted Cloud console to access Trusted Cloud by S3NS services and APIs, you don't need to set up authentication.

    gcloud

      1. After installing the Google Cloud CLI, sign in to the gcloud CLI with your federated identity and then initialize it by running the following command:

        gcloud init
      2. Set a default region and zone.

    REST

    To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.

      After installing the Google Cloud CLI, sign in to the gcloud CLI with your federated identity and then initialize it by running the following command:

      gcloud init

    For more information, see Authenticate for using REST in the Trusted Cloud authentication documentation.

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, 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.

Install the Ops Agent on instances

You can install the Ops Agent only on existing instances. To install Ops Agent on individual instances or on a fleet of instances, you can use the Trusted Cloud console, the gcloud CLI, or an automation tool. For instructions, see Install the Ops Agent.

What's next