Gunakan Google Cloud Managed Service for Prometheus untuk mengumpulkan metrik pihak ketiga dan yang ditentukan pengguna yang dikonfigurasi, lalu kirimkan ke Cloud Monitoring. Google Cloud Managed Service for Prometheus memungkinkan Anda memantau dan membuat pemberitahuan terkait workload menggunakan Prometheus, tanpa mengelola dan mengoperasikan Prometheus secara manual dalam skala besar.
Menyesuaikan dan meningkatkan pengumpulan data
Secara default, GKE membuat repositori Logging untuk menyimpan log setiap cluster. Anda dapat mengontrol log dan metrik mana, jika ada, yang dikirim dari cluster GKE Anda ke Cloud Logging dan Cloud Monitoring.
Untuk cluster GKE Autopilot, Anda tidak dapat menonaktifkan integrasi Cloud Monitoring dan Cloud Logging.
Metrik kemampuan observasi tambahan
Anda dapat mengumpulkan metrik kemampuan observasi tambahan dengan mengaktifkan satu atau beberapa
paket metrik kemampuan observasi.
Metrik bidang kontrol:
Pantau performa komponen Kubernetes dengan mengumpulkan metrik untuk
server API Kubernetes, Scheduler, dan Controller Manager. Metrik ini adalah sinyal yang berguna untuk mengetahui kesehatan layanan dalam menentukan tujuan tingkat layanan (SLO).
Metrik status kube:
Pantau kondisi objek Kubernetes seperti Deployment, Node, dan Pod.
Untuk memantau aplikasi pihak ketiga yang berjalan di cluster Anda seperti Postgres, MongoDB, dan Redis, gunakan pengekspor Prometheus dengan Google Cloud Managed Service for Prometheus.
Gunakan data yang Anda kumpulkan untuk menganalisis kondisi aplikasi, men-debug, memecahkan masalah,
dan menguji saat Anda mengembangkan, men-deploy, dan memelihara aplikasi.
GKE menyediakan fitur observabilitas bawaan untuk membantu Anda memulai dengan cepat:
Dari tab Observabilitas, Anda dapat membuat kebijakan pemberitahuan yang direkomendasikan agar Anda diberi tahu tentang masalah. Untuk mempelajari pemberitahuan lebih lanjut, lihat
Ringkasan pemberitahuan.
Buat SLO untuk
memantau tujuan performa layanan Anda menggunakan metrik GKE yang dikumpulkan.
Tinjau log audit GKE yang mencatat aktivitas dan akses administratif sebagai bagian dari Cloud Audit Logs.
Kebijakan log audit menentukan peristiwa mana yang dicatat dan apakah entri log termasuk dalam log Aktivitas Admin atau log Akses Data.
Fitur lainnya
GKE terintegrasi dengan layanan Google Cloud lainnya untuk membantu Anda memantau dan mengelola cluster dan workload.
Gunakan
dasbor postur keamanan
untuk mengidentifikasi masalah keamanan berdasarkan standar kami dan praktik terbaik industri.
Gunakan
logging kebijakan jaringan
untuk membantu Anda memecahkan masalah kebijakan jaringan Kubernetes. Jika Anda menggunakan
GKE Dataplane V2, maka
logging kebijakan jaringan sudah terintegrasi.
Harga
Harga untuk integrasi dengan Cloud Logging (termasuk Cloud Audit Logs), Cloud Monitoring, dan Google Cloud Managed Service for Prometheus didasarkan pada jumlah log dan metrik yang dikumpulkan. Lihat halaman
Harga untuk mengetahui detailnya.
Fitur yang disediakan oleh layanan Google Cloud lain yang tercantum di
Fitur lainnya memiliki harga terpisah. Lihat bagian Harga di halaman dokumentasi tersebut untuk mengetahui informasi selengkapnya.
Langkah berikutnya
Amati cluster Anda.
Pelajari cara melihat dasbor, mengatur informasi cluster, dan melihat detail pemberitahuan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-31 UTC."],[],[],null,["# Observability for GKE\n\n[Autopilot](/kubernetes-engine/docs/concepts/autopilot-overview) [Standard](/kubernetes-engine/docs/concepts/choose-cluster-mode)\n\n*** ** * ** ***\n\nThis page describes how you can understand the health of your applications and\nmaintain application availability and reliability.\n\nDefault observability features\n------------------------------\n\nBy default, GKE clusters are configured to do the following:\n\n- Send [system logs, audit logs, and application logs](/kubernetes-engine/docs/concepts/about-logs#what_logs) to Cloud Logging.\n- Send [system metrics](/kubernetes-engine/docs/how-to/configure-metrics#system-metrics) to Cloud Monitoring.\n- Use [Google Cloud Managed Service for Prometheus](/stackdriver/docs/managed-prometheus) to collect configured third-party and user-defined metrics and then send them to Cloud Monitoring. Google Cloud Managed Service for Prometheus lets you monitor and alert on your workloads using Prometheus, without manually managing and operating Prometheus at scale.\n\nCustomize and enhance data collection\n-------------------------------------\n\nBy default, GKE creates a Logging repository for\nstoring logs for each cluster. You can control which logs and which metrics, if\nany, are sent from your GKE cluster to Cloud Logging and\nCloud Monitoring.\n\nYou can also control whether to enable\n[Google Cloud Managed Service for Prometheus](/stackdriver/docs/managed-prometheus).\n\nFor GKE Autopilot clusters, you cannot disable\nthe Cloud Monitoring and Cloud Logging integration.\n\n### Additional observability metrics\n\nYou can collect additional observability metrics by enabling one or more\n[observability metrics packages](/kubernetes-engine/docs/how-to/configure-metrics).\n\n- [Control plane metrics](/kubernetes-engine/docs/how-to/control-plane-metrics): Monitor the health of Kubernetes components by collecting metrics for the Kubernetes API server, Scheduler, and Controller Manager. These metrics are useful signals of service health for defining service level objectives (SLOs).\n- [Kube state metrics](/kubernetes-engine/docs/how-to/kube-state-metrics): Monitor the health of Kubernetes objects such as Deployments, Nodes, and Pods.\n- [cAdvisor/Kubelet metrics](/kubernetes-engine/docs/how-to/cadvisor-kubelet-metrics): Monitor the health of containers and the kubelet.\n\nIf you have enabled GKE Enterprise in your project, these\nmetrics are\n[enabled by default](/kubernetes-engine/docs/how-to/configure-metrics#default-metrics-enterprise)\nwhen you\n[register to a fleet](/kubernetes-engine/fleet-management/docs/register/gke#register_your_cluster)\nduring cluster creation.\n\n### Third-party and user-defined metrics\n\nTo monitor third-party applications running on your clusters such as Postgres,\nMongoDB, and Redis, use\n[Prometheus exporters](/stackdriver/docs/managed-prometheus/exporters/introduction)\nwith Google Cloud Managed Service for Prometheus.\n\nYou can also\n[write custom exporters](https://prometheus.io/docs/instrumenting/writing_exporters/)\nto monitor other signals of health and performance.\n\nUse collected data\n------------------\n\nUse the data you collect to analyze application health, debug, troubleshoot,\nand test as you develop, deploy, and maintain your applications.\n\nGKE provides built-in observability features to get you started\nquickly:\n\n- View collected data for your clusters and workloads on in\n GKE\n [observability dashboards](/kubernetes-engine/docs/how-to/view-observability-metrics).\n You can customize the provided dashboards for the following purposes:\n\n - View key cluster metrics, such as CPU utilization, memory utilization, and the number of open incidents.\n - View clusters by their infrastructure, workloads, or Services.\n - Inspect namespaces, Nodes, workloads, Services, Pods, and containers.\n - For Pods and containers, view metrics as a function of time and view log entries.\n\n You can also [create your own dashboards](/monitoring/charts/dashboards) or\n [import Grafana dashboards](/monitoring/dashboards/import-grafana-dashboards)\n to meet your needs.\n | **Note:** The provided GKE dashboards only display information for GKE clusters running on Google Cloud. They don't display information for GKE clusters running anywhere else, for example using on-premises or bare-metal servers.\n- From the **Observability** tab, you can create recommended alert policies so\n that you are notified about issues. To learn more about alerting, see the\n [Alerting overview](/monitoring/alerts).\n\n- [Create SLOs](/stackdriver/docs/solutions/slo-monitoring/ui/create-slo) to\n monitor your service performance goals using collected GKE\n metrics.\n\n- Use GKE playbooks to troubleshoot common issues such as\n [unschedulable Pods](/kubernetes-engine/docs/troubleshooting/deployed-workloads#PodUnschedulable)\n and\n [containers that repeatedly crash after restart](/kubernetes-engine/docs/troubleshooting/deployed-workloads#CrashLoopBackOff).\n\n- Explore and analyze your data with tools such as\n [Logs Explorer](/logging/docs/view/logs-explorer-interface),\n [Metrics Explorer](/monitoring/charts/metrics-explorer) and\n [Error Reporting](/error-reporting/docs/grouping-errors).\n\n- Review GKE\n [audit logs](/kubernetes-engine/docs/how-to/audit-logging) that record\n administrative activities and accesses as part of\n [Cloud Audit Logs](/logging/docs/audit).\n [Audit log policy](/kubernetes-engine/docs/concepts/audit-policy) determines\n which events are recorded and whether a log entry belongs to an Admin Activity\n log or a Data Access log.\n\nOther features\n--------------\n\nGKE integrates with other Google Cloud services to help you\nmonitor and manage your clusters and workloads.\n\n- Use the\n [security posture dashboard](/kubernetes-engine/docs/concepts/about-security-posture-dashboard)\n to identify security concerns based on our standards and industry best\n practices.\n\n- View\n [insights and recommendations](/kubernetes-engine/docs/how-to/optimize-with-recommenders)\n to optimize your clusters.\n\n- Use\n [network policy logging](/kubernetes-engine/docs/how-to/network-policy-logging)\n to help you troubleshoot issues with Kubernetes network policies. If you use\n [GKE Dataplane V2](/kubernetes-engine/docs/concepts/dataplane-v2), then\n network policy logging is built-in.\n\nPricing\n-------\n\nPricing for integration with Cloud Logging (including\nCloud Audit Logs), Cloud Monitoring, and Google Cloud Managed Service for Prometheus is\nbased on the amount of logs and metrics collected. See the\n[Pricing](/stackdriver/pricing) page for details.\n\nFeatures provided by other Google Cloud services listed in\n[Other features](#other-features) have separate pricing. See the Pricing section\nof those documentation pages for more information.\n\nWhat's next\n-----------\n\n- [Observe your clusters](/kubernetes-engine/docs/how-to/view-observability-metrics).\n Learn how to view dashboards, organize cluster information, and view alerting\n details.\n\n- [Enable verbose, OS-level audit logging](/kubernetes-engine/docs/how-to/linux-auditd-logging)\n on GKE cluster nodes and how to export logs to\n Cloud Logging.\n\n- For more information about how to use observability features to troubleshoot\n GKE, see\n [Introduction to GKE troubleshooting](/kubernetes-engine/docs/troubleshooting/introduction)."]]