An operational engineering team is configuring Cloud Monitoring alerting policies for a fleet of Compute Engine virtual machines. They require alerts to trigger when memory utilization on any instance exceeds 80% for more than 10 minutes. However, when attempting to build the alert condition in the Cloud Monitoring console, the system memory utilization metric (agent.googleapis.com/memory/percent_used) is unavailable. Which action should the team take to enable this metric and successfully configure the alerting policy?
- Install and configure the Ops Agent on the Compute Engine instances to collect and report guest-OS system metrics to Cloud Monitoring.Cevap
- BAssign the primitive Editor role to the Compute Engine default service account to grant permission to write custom metrics.
- CSubmit a Google Cloud support ticket to request a regional quota increase for Monitoring API ingestion metric descriptors.
- DGrant the SRE team the Service Account Admin role on the Compute Engine service account to allow agent telemetry access.
Cevap
Install and configure the Ops Agent on the Compute Engine instances to collect and report guest-OS system metrics to Cloud Monitoring.
Default Compute Engine metrics provided by the hypervisor only monitor external resource usage like CPU utilization and network throughput. Memory utilization is managed inside the guest operating system kernel. Installing the Ops Agent deploys a daemon inside the guest OS that continuously collects memory utilization data and pushes it to Cloud Monitoring under the metric namespace `agent.googleapis.com/memory/percent_used`.
Adım Adım Çözüm
Anahtar Kavram
Compute Engine Guest-OS Telemetry & Ops Agent Monitoring