Question

Difficulty: EasyMonitoring and Logging

A system administrator needs to monitor system-level metrics (such as memory utilization and disk space usage) as well as application logs on a fleet of Google Cloud Compute Engine virtual machines. Which component should be installed on the instances to collect both system telemetry and log data under Google Cloud recommended practices?

  1. The Google Cloud Ops AgentAnswer
  2. B
    The legacy Stackdriver Monitoring Agent combined with the standalone Logging Agent
  3. C
    The Project Editor IAM role across all target virtual machine instances
  4. D
    The Service Usage API enabled in the parent folder resource level

Answer

Install the Google Cloud Ops Agent on the Compute Engine virtual machine instances.
The Google Cloud Ops Agent is the primary unified agent for collecting system metrics, custom metrics, and logs from Compute Engine instances. It provides comprehensive observability for guest operating systems in a single package.

Step-by-Step Solution

1
Identify the telemetry collection requirement for Compute Engine virtual machines.
The requirement specifies capturing both guest system metrics (such as memory and disk utilization) and log files.
Compute Engine default metrics only cover hypervisor-level data (e.g., CPU utilization), requiring in-guest telemetry tools for detailed OS metrics and logs.
2
Select the current Google Cloud recommended solution for agent-based telemetry.
Choose the Google Cloud Ops Agent.
The Google Cloud Ops Agent replaces legacy standalone agents by combining metric collection (OpenTelemetry-based) and log collection (Fluent Bit-based) into a single unified service.

Key Concept

Google Cloud Ops Agent telemetry collection
Estimated Time:45s
Rate this question