HTTP 요청/응답¶
m2_http_frontend¶
See also
frontEnd 기능 참고.
functions.network.http.frontend 컴포넌트 메트릭을 제공한다.
frontend 는 M2가 클라이언트에게 서비스하는 구간을 의미한다.
Note
src label의 의미는 다음과 같다.
ininternal 트래픽은 현재 노드로 인입된 트래픽이 정상적으로 처리된 상태를 의미한다.exexternal 트래픽은 다른 노드로 인입된 트래픽이 장애등으로 인해 현재 노드로 위임된 상태를 의미한다.
metric |
type |
label |
description |
|---|---|---|---|
m2_http_frontend_status |
gauge |
vhost |
가상호스트 활성화 상태 ( |
m2_http_frontend_receive_size_bytes |
counter |
vhost src |
클라이언트로부터 수신한 용량
|
m2_http_frontend_send_size_bytes |
counter |
vhost src |
클라이언트에게 전송한 용량
|
m2_http_frontend_sessions_establish |
gauge |
vhost src |
클라이언트 연결 세션수
|
m2_http_frontend_tx_active |
gauge |
vhost src |
진행 중인 HTTP 트랜잭션
|
m2_http_frontend_tx_abort_total |
counter |
vhost src |
중단된 HTTP 트랜잭션
|
m2_http_frontend_tx_complete_total |
counter |
vhost src |
완료된 HTTP 트랜잭션
|
m2_http_frontend_tx_ttfb_seconds |
histogram |
vhost src
|
클라이언트 응답 시간 (Time To First Bytes)
|
m2_http_frontend_tx_complete_seconds |
histogram |
vhost src
|
클라이언트 응답 완료 시간
|
m2_http_frontend_requests_total |
counter |
vhost src |
클라이언트 요청 수
|
m2_http_frontend_requests_deny_total |
counter |
vhost src |
거부된 클라이언트 요청 수
|
m2_http_frontend_requests_bypass_total |
counter |
vhost src |
바이패스된 클라이언트 요청 수
|
m2_http_frontend_requests_urlrewrite_total |
counter |
vhost src |
URL Rewrite된 클라이언트 요청 수
|
m2_http_frontend_requests_header_size_bytes |
counter |
vhost src |
클라이언트 요청헤더 크기
|
m2_http_frontend_responses_total |
counter |
vhost src code |
클라이언트 응답 수
|
m2_http_frontend_responses_header_size_bytes |
counter |
vhost src |
클라이언트 응답헤더 크기
|
m2_http_frontend_responses_cl_size_bytes |
histogram |
vhost src
|
클라이언트에게 응답한
|
m2_http_frontend_responses_object_size_bytes |
histogram |
vhost src
|
접근된 콘텐츠 객체 크기 분포
|
m2_http_frontend_fallbacks_in_total |
counter |
vhost src |
fallbacks 을 통해 이 가상호스트로 유입된 요청수
|
m2_http_frontend_fallbacks_out_total |
counter |
vhost src |
|
m2_http_frontend_countrycode_total |
counter |
vhost type |
국가별 요청수 ISO 3166-1 alpha-2 국가코드 |
m2_http_frontend_countrycode_size_bytes_total |
counter |
vhost type |
국가별 전송 ISO 3166-1 alpha-2 국가코드 |
m2_http_frontend_payload¶
contentType 설정이 활성화된 경우 Payload(=HTTP로 전송된 콘텐츠) 중심 트랜잭션 메트릭을 제공한다.
Important
200 OK응답에 대해서만 집계된다.206은 지표의 의도를 왜곡할 수 있어 제외한다.그 외 응답코드는 콘텐츠가 전송되지 않기에 제외한다.
metric |
type |
label |
description |
|---|---|---|---|
m2_http_frontend_payload_tx_total |
counter |
vhost |
트랜잭션 수 |
m2_http_frontend_payload_src_size_bytes_total |
counter |
vhost type |
원본 용량 contentType (예: |
m2_http_frontend_payload_dest_size_bytes_total |
counter |
vhost type |
출력 용량 contentType (예: |
Note
m2_http_frontend_payload_src_size_bytes_total 메트릭 주의사항
HLS처럼 세그먼트 단위로 동작시 원본 비디오 전체 용량이 아닌 원본을 세그먼트로 분할하여 집계된다.
m2_http_frontend_contenttype¶
Warning
m2_http_frontend_payload 메트릭으로 흡수통합 예정.
contentType 설정이 활성화되어 있다면 HTTP 응답시점에 Content-Type 헤더를 참조하여 메트릭을 집계한다.
metric |
type |
label |
description |
|---|---|---|---|
m2_http_frontend_contenttype_total |
counter |
vhost type |
콘텐트 타입별 응답 수 콘텐트 타입 |
m2_http_frontend_contenttype_size_bytes_total |
counter |
vhost type |
콘텐트 타입별 전송량 (헤더 + 콘텐츠) 콘텐트 타입 |
m2_http_frontend_os¶
userAgent .os 설정이 활성화되어 있다면 HTTP 응답시점에 User-Agent 헤더를 참조하여 메트릭을 집계한다.
metric |
type |
label |
description |
|---|---|---|---|
m2_http_frontend_os_total |
counter |
vhost type |
OS 별 응답 수 OS 종류 |
m2_http_frontend_device¶
userAgent .device 설정이 활성화되어 있다면 HTTP 응답시점에 User-Agent 헤더를 참조하여 메트릭을 집계한다.
metric |
type |
label |
description |
|---|---|---|---|
m2_http_frontend_device_total |
counter |
vhost type |
디바이스 별 응답 수 디바이스 종류 |
m2_http_frontend_countrycode¶
geoip 설정이 활성화되어 있다면 국가별 요청수를 집계한다.
metric |
type |
label |
description |
|---|---|---|---|
m2_http_frontend_countrycode_total |
counter |
vhost type |
국가별 요청수 ISO 3166-1 alpha-2 국가코드 |
m2_http_frontend_countrycode_size_bytes_total |
counter |
vhost type |
국가별 클라이언트로부터 수신한 용량 ISO 3166-1 alpha-2 국가코드 |
m2_http_backend¶
See also
backEnd 기능 참고.
functions.network.http.backend컴포넌트 메트릭을 제공한다.backend는 M2가 원본과 통신하는 구간을 의미한다.
metric |
type |
label |
description |
|---|---|---|---|
m2_http_backend_receive_size_bytes |
counter |
vhost |
원본으로부터 수신한 전체크기 |
m2_http_backend_send_size_bytes |
counter |
vhost |
원본으로 전송한 용량 |
m2_http_backend_sessions_establish |
gauge |
vhost |
원본 연결 세션수 |
m2_http_backend_tx_active |
gauge |
vhost |
진행 중인 HTTP 트랜잭션 |
m2_http_backend_tx_abort_total |
counter |
vhost |
중단된 HTTP 트랜잭션 |
m2_http_backend_tx_complete_total |
counter |
vhost |
완료된 HTTP 트랜잭션 |
m2_http_backend_tx_ttfb_seconds |
histogram |
vhost
|
원본 응답 시간 (Time To First Bytes)
|
m2_http_backend_tx_complete_seconds |
histogram |
vhost
|
원본 응답 완료 시간
|
m2_http_backend_requests_total |
counter |
vhost |
원본 요청 수 |
m2_http_backend_requests_urlrewrite_total |
counter |
vhost |
URL Rewrite된 원본 요청 수 |
m2_http_backend_requests_header_size_bytes |
counter |
vhost |
원본 요청헤더 크기 |
m2_http_backend_responses_total |
counter |
vhost code |
원본 응답 수
|
m2_http_backend_responses_header_size_bytes |
counter |
vhost |
원본 응답헤더 크기 |
m2_http_backend_responses_cl_size_bytes |
histogram |
vhost
|
원본에서 수신된
|
m2_http_backend_responses_object_size_bytes |
histogram |
vhost
|
접근된 원본 콘텐츠 객체 크기 분포
|
m2_http_backend_fallbacks_out_total |
counter |
vhost |
|