메트릭
목차
메트릭 개요
Golden Signals
메트릭 수집 아키텍처
Istio 표준 메트릭
HTTP/gRPC 메트릭
istio_requests_total
istio_request_duration_milliseconds
istio_request_bytes
istio_response_bytes
TCP 메트릭
istio_tcp_connections_opened_total
istio_tcp_connections_closed_total
istio_tcp_sent_bytes_total
istio_tcp_received_bytes_total
Circuit Breaker 메트릭
주요 Circuit Breaker 메트릭
1. Upstream Connection Pool Overflow
2. Circuit Breaker Open (Upstream Request Rejected)
3. Pending Requests Overflow
4. Retry Budget Exhausted
5. Response Flags로 Circuit Breaker 감지
Circuit Breaker 모니터링 대시보드 쿼리
Circuit Breaker 알림 규칙
Resilience 메트릭
Outlier Detection 메트릭
1. Ejected Hosts
2. Ejection Events
Retry 메트릭
Timeout 메트릭
OpenTelemetry 통합
OpenTelemetry Collector 설정
1. MeshConfig 설정
2. Telemetry API로 OpenTelemetry 활성화
3. OpenTelemetry Collector 배포
4. Prometheus ServiceMonitor 설정
OpenTelemetry 메트릭 검증
Prometheus 통합
Prometheus 설정
1. Prometheus ConfigMap
2. ServiceMonitor로 자동 스크래핑
Prometheus 쿼리 최적화
Telemetry API를 통한 커스터마이징
메트릭 커스터마이징
1. 특정 메트릭만 활성화
2. 커스텀 레이블 추가
3. 네임스페이스별 메트릭 설정
4. 메트릭 비활성화로 성능 향상
실전 메트릭 쿼리
Golden Signals 대시보드
1. Latency (지연시간)
2. Traffic (트래픽)
3. Errors (에러)
4. Saturation (포화도)
mTLS 모니터링
서비스 메시 health 대시보드
메트릭 최적화
고카디널리티 문제 해결
1. 불필요한 레이블 제거
2. 레이블 값 정규화
메트릭 샘플링
Prometheus 성능 튜닝
문제 해결
메트릭이 수집되지 않을 때
1. Envoy 메트릭 엔드포인트 확인
2. Prometheus가 타겟을 발견했는지 확인
3. Telemetry API 설정 검증
메트릭 레이블이 누락되었을 때
메트릭 cardinality 폭발
Circuit Breaker 메트릭이 보이지 않을 때
참고 자료
마지막 업데이트