Professional Cloud DevOps Engineer
You are designing the hosting architecture in Google Kubernetes Engine (GKE) for business-critical applications. These applications provide custom metrics for monitoring with Prometheus. You need to collect the application metrics for alerting and troubleshooting purposes. You want to minimize the amount of manual effort and maintenance required while following Google-recommended practices. What should you do?
- A. Install Prometheus servers in the GKE clusters. Configure Prometheus to scrape and forward the custom metrics to the Cloud Monitoring API.
- B. Install the OpenTelemetry collector in the GKE clusters. Configure it to collect and export the custom metrics to Cloud Monitoring.
- C. Modify each application to use the Cloud Monitoring API to push the custom metrics.
- D. Configure Google Cloud Managed Service for Prometheus collection in the GKE clusters to collect the custom metrics.