A cloud operations team recently deployed a set of database virtual machines on Compute Engine. While reviewing the Cloud Monitoring dashboard, they observe that hypervisor-level metrics like CPU utilization and network traffic are visible, but guest OS memory utilization and disk space usage metrics are unavailable. Which action should the team take to collect these missing metrics in accordance with Google-recommended practices?
- Install the Google Cloud Ops Agent on the virtual machine instances.Answer
- BInstall the legacy Stackdriver Monitoring agent on the virtual machine instances.
- CGrant the primitive Owner role to the Compute Engine default service account.
- DEnable the Cloud Monitoring API at the Organization resource node level.
Answer
Install the Google Cloud Ops Agent on the virtual machine instances.
Compute Engine hypervisors natively collect host-level metrics like CPU utilization and network I/O. However, memory utilization and guest file system usage are internal to the operating system. Installing the Google Cloud Ops Agent inside the VM instance captures these guest OS metrics and transfers them to Cloud Monitoring according to Google-recommended practices.
Step-by-Step Solution
Key Concept
Google Cloud Ops Agent vs. Hypervisor Metrics
Estimated Time:1m 30s