Google Kubernetes Engine(GKE)에서 워크로드를 구성하여 애플리케이션 성능 측정항목을 Cloud Monitoring으로 보낼 수 있습니다. 그런 다음 이 측정항목을 사용하여 애플리케이션의 성능 회귀를 감지할 수 있습니다.
Google Kubernetes Engine은 워크로드에 다음과 같은 종류의 성능 측정에 대한 시각화를 제공합니다.
요청: 사용 가능한 경우 작업별로 그룹화된 초당 요청 비율을 표시합니다.
오류: 작업 및 응답 코드별로 그룹화된 오류율을 표시합니다.
지연 시간: 작업별로 50번째 백분위수 및 95번째 백분위수 응답 지연 시간을 표시합니다.
애플리케이션 성능 측정항목을 사용하려면 먼저 애플리케이션에 측정항목을 Cloud Monitoring으로 보낼 수 있는 방법이 있어야 합니다. 권장 접근 방식에 대한 자세한 내용은 애플리케이션 성능 측정항목 수집을 참조하세요.
애플리케이션 성능 측정항목 수집
지원되는 다음 통합을 사용해서 Google Kubernetes Engine에 대해 애플리케이션 성능 측정항목을 수집할 수 있습니다.
Cloud Service Mesh: Cloud Service Mesh를 사용하면 애플리케이션 성능 측정항목이 자동으로 수집됩니다.
Istio: 오픈소스 Istio를 사용하는 경우 Google Cloud Managed Service for Prometheus를 사용해서 측정항목을 수집하는 것이 좋습니다.
GKE 인그레스: 애플리케이션 부하 분산기에 GKE 인그레스를 구성하면 GKE 서비스 및 GKE 인그레스를 기반으로 한 배포에 트래픽을 라우팅하는 HTTP/S 부하 분산기에 대한 성능 측정항목이 자동으로 수집됩니다.
NGINX 인그레스: NGINX 인그레스를 사용하는 경우 Google Cloud Managed Service for Prometheus를 사용하여 측정항목을 수집하는 것이 좋습니다.
Prometheus HTTP 및 gRPC 측정항목: 애플리케이션이 Prometheus HTTP 또는 gRPC 측정항목을 노출하는 경우 Google Cloud Managed Service for Prometheus를 사용하여 측정항목을 수집하려면 HTTP 서버, gRPC 서버 문서를 따르는 것이 좋습니다.
애플리케이션 성능 측정항목 보기
성능 데이터를 분석에 사용할 수 있게 되면, 애플리케이션 대시보드에서 배포에 대한 측정항목을 볼 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-01(UTC)"],[],[],null,["# Use application performance metrics\n\n[Autopilot](/kubernetes-engine/docs/concepts/autopilot-overview) [Standard](/kubernetes-engine/docs/concepts/choose-cluster-mode)\n\n*** ** * ** ***\n\nYou can configure your workloads on Google Kubernetes Engine (GKE) to send\napplication performance metrics to Cloud Monitoring. You can then\nuse these metrics to detect performance regressions in your application.\nGoogle Kubernetes Engine provides visualizations for the following kinds of performance\nmeasures for your workloads:\n\n- Requests: shows the per-second request rate, grouped by operation when available.\n- Errors: shows error rates, grouped by operation and response code.\n- Latency: shows 50th and 95th percentile response latency by operation.\n- CPU and memory: shows the utilization of CPU and memory as a percentage of a requested amount.\n\nThese metrics correspond to the\n[*golden signals*](https://sre.google/sre-book/monitoring-distributed-systems/#xref_monitoring_golden-signals)\nrecommended in the Google\n[*Site Reliability Engineering* book](https://sre.google/sre-book/monitoring-distributed-systems/)\nfor monitoring distributed systems.\n\nYou can also view and explore logs for your workloads.\n\nBefore you can use application performance metrics, your application must have\na way to send the metrics to Cloud Monitoring. For information about\nrecommended approaches, see\n[Collect application performance metrics](#app-perf-ingest).\n\nCollect application performance metrics\n---------------------------------------\n\nYou can collect application performance metrics for Google Kubernetes Engine by using\nthe following supported integrations:\n\n- **Cloud Service Mesh**: If you use Cloud Service Mesh, then application performance metrics are collected automatically.\n- **Istio** : If you use [open source Istio](https://istio.io), then we recommend that you [collect the metrics](/stackdriver/docs/managed-prometheus/exporters/istio) by using Google Cloud Managed Service for Prometheus.\n- **GKE Ingress** : When you configure [GKE Ingress for Application Load Balancers](/kubernetes-engine/docs/concepts/ingress), performance metrics are automatically collected for the HTTP/S load balancers that route traffic to your GKE Service and Deployment resources behind GKE Ingress.\n- **NGINX Ingress** : If you are using [NGINX Ingress](https://kubernetes.github.io/ingress-nginx/), then we recommend that you [collect the metrics](/stackdriver/docs/managed-prometheus/exporters/ingress-nginx) by using Google Cloud Managed Service for Prometheus.\n- **Prometheus HTTP and gRPC metrics** : If your application exposes Prometheus HTTP or gRPC metrics, then we recommend that you follow the [HTTP server](/stackdriver/docs/managed-prometheus/exporters/server/http) and [gRPC server](/stackdriver/docs/managed-prometheus/exporters/server/grpc) documents to collect the metrics by using Google Cloud Managed Service for Prometheus.\n\nView application performance metrics\n------------------------------------\n\nAfter the performance data is available for analysis, you can\n[view the metrics](/kubernetes-engine/docs/how-to/view-observability-metrics#app-perf-view)\nfor a Deployment on the application dashboard."]]