GoogleGoogle Professional Cloud Developer (PCD) Certification
·TW
·更新於 3 Sep 2026
GKE 應用程式出現效能問題;日誌位於 Cloud Logging 中,並透過 Prometheus sidecar 收集指標。您需要關聯日誌和指標、傳送即時警示,並將成本降至最低。您應該怎麼做?
選擇一個答案
點擊一個選項來檢查您的答案。
正確答案: 將 Prometheus 指標匯出到 Cloud Monitoring 作為外部指標;在 Cloud Monitoring 中從 Cloud Logging 建立日誌型指標,並將其與 Prometheus 資料關聯。.
為什麼這是答案
正確答案是將 Prometheus 指標匯出到 Cloud Monitoring 作為外部指標;在 Cloud Monitoring 中從 Cloud Logging 建立日誌型指標,並將其與 Prometheus 資料關聯。這樣做能將所有監控資料集中在 Cloud Monitoring 中,方便關聯日誌和指標。Cloud Monitoring 支援即時警示,且日誌型指標和外部指標的成本效益高。
其他選項的缺點:
從 Cloud Logging 建立自訂指標並匯入 Prometheus 不可行,因為 Prometheus 主要用於收集指標,而非從日誌建立指標。
將資料匯出到 Cloud Bigtable 或 BigQuery 會增加複雜性和成本,且 Bigtable 不適合即時警示,BigQuery 的定期聯結也無法提供即時警示。
通過考試 — 無需無休止地尋找答案
集中一處獲取此考試的所有核實題目和解釋,節省數小時的準備時間。1,000 多種認證 · 20 多種語言 · 免費開始。
更快通過您的考試 →
無需信用卡