Question

Difficulty: MediumMonitoring and Logging

A DevOps engineer is configuring observability for a fleet of Compute Engine instances running a specialized media processing application. The operations team requires real-time memory usage metrics and operating system log collection in Google Cloud Observability, as standard hypervisor metrics do not capture OS-level memory consumption. Which action should the engineer take to meet these telemetry requirements?

  1. Install and configure the unified Google Cloud Ops Agent on all Compute Engine instances.Answer
  2. B
    Install the legacy Stackdriver Monitoring Agent and Stackdriver Logging Agent on all Compute Engine instances.
  3. C
    Grant the Compute Instance Admin (v1) IAM role to the default Compute Engine service account.
  4. D
    Enable the Cloud Logging and Cloud Monitoring APIs in the organization node rather than the individual host project.

Answer

Install and configure the unified Google Cloud Ops Agent on all Compute Engine instances.
The Google Cloud Ops Agent is the primary unified agent for Compute Engine virtual machines. It combines logging and metric collection into a single agent, capturing guest OS telemetry such as detailed memory usage, swap space, disk metrics, and system logs, which are inaccessible via standard hypervisor metrics.

Step-by-Step Solution

1
Identify missing telemetry requirements
Hypervisor metrics provided by Compute Engine do not include internal operating system details such as RAM/memory utilization or internal application/syslog files.
Hypervisors monitor hardware resources from the outside and cannot inspect guest OS memory allocations directly.
2
Select the current Google Cloud recommended agent
Identify the Google Cloud Ops Agent as the active unified solution combining metric and log collection.
Google Cloud Ops Agent replaces legacy Monitoring and Logging agents, offering a single combined telemetry pipeline.
3
Deploy and verify agent execution
Install the Ops Agent on the VM instances to stream memory metrics to Cloud Monitoring and system logs to Cloud Logging.
The Ops Agent gathers system-level diagnostics from within the guest OS and transmits them securely to Google Cloud Observability.

Key Concept

Compute Engine VM Observability and Google Cloud Ops Agent Deployment
Rate this question