A cloud administrator is tasked with setting up telemetry collection and long-term analytics for a fleet of Compute Engine virtual machines. The requirements state that custom application log files must be exported to BigQuery for analytical querying, and host-level system metrics must be continuously monitored in Cloud Monitoring. Which TWO actions must the administrator perform to satisfy these operational requirements?
- Install and configure the unified Ops Agent on the Compute Engine instances to ingest system metrics and application logs from specified file paths.Cevap
- Configure a Cloud Logging Log Router sink with an inclusion filter for the application logs, specifying a BigQuery dataset as the destination.Cevap
- CGrant the primitive Owner role to the Log Router sink's writer identity on the destination BigQuery dataset to permit log ingestion.
- DDeploy the legacy Stackdriver Monitoring and Logging standalone agents on the virtual machine instances to collect operating system telemetry.
Cevap
The administrator must install the unified Ops Agent on the Compute Engine instances to gather metrics and logs, and configure a Cloud Logging Log Router sink pointing to a BigQuery dataset with an inclusion filter matching the application logs.
To collect host metrics and application logs from Compute Engine virtual machines, Google Cloud recommends installing the unified Ops Agent. To route these logs to BigQuery for long-term analytics, a Cloud Logging Log Router sink must be configured with an inclusion filter targeting the application logs and specifying the BigQuery dataset as the sink destination.
Adım Adım Çözüm
Anahtar Kavram
Telemetry collection using the Google Cloud Ops Agent and long-term log export via Cloud Logging Log Router sinks.