Soru

Zorluk: OrtaMonitoring and Logging

A DevOps engineer is configuring telemetry collection for a batch processing workload running on Linux Compute Engine virtual machines. Upon opening the Google Cloud Monitoring console, the engineer notices that basic hypervisor metrics such as CPU utilization and disk I/O are visible, but guest OS memory utilization and internal system logs are missing. Which action should the engineer take to collect these missing metrics and logs?

  1. Install and run the Google Cloud Ops Agent on each Compute Engine virtual machine instance.Cevap
  2. B
    Install the standalone legacy Stackdriver Monitoring agent alongside the legacy Stackdriver Logging agent on each virtual machine instance.
  3. C
    Enable the Cloud Monitoring API within the parent Google Cloud Organization resource policy.
  4. D
    Assign the primitive Editor role to the default Compute Engine service account to grant hypervisor access to guest memory.

Cevap

Install and run the Google Cloud Ops Agent on each Compute Engine virtual machine instance.
The correct option installs the Google Cloud Ops Agent on the virtual machines. The Ops Agent is the recommended solution for gathering guest OS metrics (such as memory usage and swap space) as well as internal system and application log files from Compute Engine instances.

Adım Adım Çözüm

1
Identify the telemetry requirement
Determine that OS memory metrics and system logs require an in-guest telemetry agent, as hypervisors only capture external host metrics like CPU and disk bytes.
Hypervisor monitoring cannot read internal operating system state such as active RAM usage or log files.
2
Select the correct Google Cloud agent solution
Choose the Google Cloud Ops Agent, which combines metric collection (OpenTelemetry-based) and log collection (Fluent Bit-based) into a single unified process.
Google Cloud recommends the Ops Agent for all current Compute Engine VM monitoring and logging needs.

Anahtar Kavram

Google Cloud Ops Agent deployment for Compute Engine guest OS observability
Tahmini Süre:1m 30s
Bu soruyu puanla