An operations team needs to collect system metrics (such as memory utilization) and application log files from a fleet of Compute Engine Virtual Machine (VM) instances. Which of the following actions should the team perform following Google Cloud recommended practices? (Select TWO.)
- Install the unified Google Cloud Ops Agent on each Compute Engine VM instance.Cevap
- Configure the Ops Agent configuration file (config.yaml) to specify custom log receivers and metric pipelines.Cevap
- CInstall both the standalone legacy Stackdriver Monitoring Agent and legacy Stackdriver Logging Agent on each VM instance.
- DAssign the Owner primitive IAM role to the VM service account to grant necessary telemetry writing permissions.
Cevap
To collect system metrics and log files from Compute Engine VMs following Google Cloud recommended practices, the team should install the unified Google Cloud Ops Agent on each instance and configure the agent's config.yaml file to define the required log and metric pipelines.
Google Cloud recommends installing the unified Google Cloud Ops Agent on Compute Engine instances to gather telemetry such as memory usage, disk metrics, and system logs. Custom log paths and metric ingestion settings are configured directly in the Ops Agent's config.yaml file.
Adım Adım Çözüm
Anahtar Kavram
Google Cloud Ops Agent deployment and configuration for Compute Engine telemetry